Jump to content
Serginho

Units (person) speed

Recommended Posts

Hey

How I can change the speed, for example, of the coroners so they move slower. I have tried to midify the file campaignprogress.xml in all ways that I found in forums but I cuoldn´t. Can someone tell me step by step, basically, how to make the units walk instead of running? 

Thank you and sorry if I wrote something wrong, I had to use a bit of the Google translator to write this http://www.emergency-planet.com/uploads/emoticons/default_smile.png


 

 
Link to comment
Share on other sites

In a campaign mission, you can make use of the SetUpgradeLevel function to change how fast a person moves.

For that, you need to make custom command scripts to change the speed of a person.

In freeplay mode, the person speed cannot be changed using the upgrade level. You need to use SetSpeed instead, but it causes problems with the animation.

Link to comment
Share on other sites

I do not give up, I keep trying to modify the speed of the units (not vehicles) in freeplay. I have found that in Italian Submod 1.2 and in Helping Peter 0.1, if you press a key (shift), the units can alternate between running or walking.
I have changed the script "move" from the Italian Submod to the mod I use to test (based in LA mod) with minimal changes because they are very similar, I have changed it in the editor and everything and it does not work.

I would also like to know if there is any way to make a person go slower when he picks up an object: axe, stretcher ...

 

Thanks in advance http://www.emergency-planet.com/uploads/emoticons/default_smile.png

italian submod MOVE.script

Link to comment
Share on other sites

The walking logic does not work in regular freeplay. It only works in campaign mode. The reason is that the "upgradeLevel" code for changing between walking and running is overwritten in freeplay. There is no way for you to make the script work in a mod that isnt based on the Em4 campaign.

There is also no way to make the person go slower when getting equipment, if you are in normal freeplay. You can make them go slower when in the Em4 campaign mode though.

You can actually prove this theory. Use your modified move script, but play a campaign mission of Em4. You will notice that your units will indeed walk slower when carrying certain equipment. They will not do this in freeplay.

Link to comment
Share on other sites

Itchboy is right http://www.emergency-planet.com/uploads/emoticons/default_smile.png
For Helping Peter we used the upgradelevel, but it only works because the mod is campainbased, it will not work in freeplay http://www.emergency-planet.com/uploads/emoticons/default_smile.png 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...