Jump to content

Dren

Member
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Dren's Achievements

  1. I am trying to mod different zombie types to have different sounds, like in The Last of Us where there are runners, clickers and bloaters. In the vanilla game there are 3 voice variants for each gender (vocal_A, vocal_B, and vocal_C), which gets assigned to each zombie. You can see the files for this if you go to ProjectZomboid>media>sound>banks>Desktop>ZomboidSound.bank, and view these files with fmod bank tools. I already have the code to set infected types finished. What I am looking for help with is how to assign each voice type to each infected, so that runners always use vocal_A, clickers use vocal_C, and bloaters use vocal_B). This is where I plan to implement the code, using "zombie:setVocalType()" as an example to where the variable should be set : Is this possible to implement? Any help would be appreciated, thank you!
  2. I think I figured it out! I used the mod "Kayli's Evolution Mod" for reference. The "CalculateEvoDays()" function runs every night at midnight, which sets the "EvoDays" variable to the number of days since apocalypse.
  3. I need to set a variable to the number of days that have passed since the apocalypse first started, in order to determine if certain zombie types have evolved yet or not (imagine a certain zombie starts appearing after 30 days, for example) Functions like "getGameTime():getDay()" only get the current day of the month, and "getGameTime():getDaysSurvived()" resets whenever the player dies, so that won't work either. I would think there is a built in variable for this, used to determine things like the level of erosion in the world? Is there a more practical way to do this besides doing all the math to compare the starting day/month/year to current day/month/year? Thank you for the help!
×
×
  • Create New...