How to make zombies move faster? Created 8 years ago2016-06-12 18:11:28 UTC by Mmoonyy Mmoonyy

Created 8 years ago2016-06-12 18:11:28 UTC by Mmoonyy Mmoonyy

Posted 8 years ago2016-06-12 18:11:28 UTC Post #330396
Hey guys, since I'm making a horror mod, I wondered how I can make the zombies pace faster, cause they're not scary if they're slow. So if anyone knows how to make an npc move faster please tell me, thanks.
Posted 8 years ago2016-06-12 19:56:56 UTC Post #330398
I think this is done in the MDL file, decompile the "zombie.mdl" with MDLDec, take a look at the QC file with Notepad, change the value, recompile with StudioMDL.
Posted 8 years ago2016-06-12 21:51:51 UTC Post #330400
Thanks
Posted 8 years ago2016-06-22 12:29:42 UTC Post #330545
Jumping in the topic.

GoldSource takes the movement speed from the model and not from dlls?
EsprimoP EsprimoPwEight
Posted 8 years ago2016-06-22 13:21:00 UTC Post #330547
Unless someone say the opposite : yeah
Posted 8 years ago2016-06-22 14:48:38 UTC Post #330548
Correct. So changing the speed of the animation changes the speed of movement. The joys of .QC file editing.

You can also make stronger variants of enemies by making their attack damage fire twice at the same time. So you could, for example make soldier zombies hit twice as hard. :D
monster_urby monster_urbyGoldsourcerer
Posted 8 years ago2016-06-22 18:34:30 UTC Post #330553
I dont know anything about this but does this have something to do with so called events?
Posted 8 years ago2016-06-22 19:39:07 UTC Post #330558
I dont know anything about this but does this have something to do with so called events?
For monsters, events are used for some "behavior logic". All of this is handled by a method called "HandleAnimEvent" which is overridden by each monster.

For example, the zombie has 3 events : "Attack slash left", "attack slash right", "attack slash both". Let's say that the "attack slash right" animation is played, once the animation frame call the event, "CZombie::HandleAnimEvent" is called with the parameter "ATTACK_SLASH_RIGHT", and all the attack logic is done (trace the line, check if it hit something, apply damage...)

In other words, you disable the events, the attack logic is never called even if the zombie play the animation ^^
You must be logged in to post a response.