Jump to content
CCCXLII

Faster Personnel

Recommended Posts

I've been wondering something. I know it's possible to make a vehicle faster than another vehicle. But is it possible to make certain personnel faster than other personnel? And is it possible to temporarily raise or decrease a unit's speed?

 

I've been toying with the idea of making an on-foot Pursuit Cop (a la Mirror's Edge).

 

EDIT1: I just tried putting a <speed value="100" /> tag on an officer. No change in speed.

Link to comment
Share on other sites

Not sure if it works. But try p.SetSpeed(10.f);

Proberly won't but it is a place to start :)

 

I'm not familiar enough with the game's script language to try that, though I have a feeling that your suggestion might work. If I could, I would create an alternate arrest command for the Pursuit Cops, causing their speed to increase when starting the target_follow behavior.

 

Something I did discover, after a bit of searching, is that you can change the upgrade level of the unit to technically change their speed. By lowering the value, you can make it so a personnel is unable to run, but that's about it.

Link to comment
Share on other sites

yeah, em4 has an upgrade system going from 0-3 where 0 will only walk and 3 will be the fastest. 

I have played a bit with it in Helping Peter mod where you can switch between walking and running :)

Link to comment
Share on other sites

Hmm, you are proberly right itchboy, when i tested it, I only tried in missions. 

 

But as far as i recall the styrker script i most mods tricks the game into thinking the paramedics are carrying an invisible person, and the game doesn't have any animations for running while carrying somebody. Not sure if its possible to change :)

 

 

Yes, the SetUpgrade works in mission. You can try my mod Helping Peter if you hold down shift while using the move command the personel switches between walking and running :)

Link to comment
Share on other sites

Yes, the SetUpgrade works in mission. You can try my mod Helping Peter if you hold down shift while using the move command the personel switches between walking and running :)

Nice! I'm going to see what I can do, thanks. :)

Sent from my iPhone 4 using Tapatalk.

Link to comment
Share on other sites

Hmm, you are proberly right itchboy, when i tested it, I only tried in missions. 

 

But as far as i recall the styrker script i most mods tricks the game into thinking the paramedics are carrying an invisible person, and the game doesn't have any animations for running while carrying somebody. Not sure if its possible to change :)

 

 

Yes, the SetUpgrade works in mission. You can try my mod Helping Peter if you hold down shift while using the move command the personel switches between walking and running :)

The stryker script I use does not "trick" the game unfortunately. The game lifts the invisible injured person, which is why it makes the medic walk.

EM4 forces units in FP to be upgrade level 3 at all times unfortunately. I am looking through every possible option (unit.xml, freeplaybase, EM4 SDK) to figure out a way to force them to walk.

Link to comment
Share on other sites

The stryker script I use does not "trick" the game unfortunately. The game lifts the invisible injured person, which is why it makes the medic walk.

EM4 forces units in FP to be upgrade level 3 at all times unfortunately. I am looking through every possible option (unit.xml, freeplaybase, EM4 SDK) to figure out a way to force them to walk.

 

Maybe the solution is to make the game run as a mission then?

I have made most of it work for Copenhagen, only problem with it, was that i couldn't figure out a way to make it possible to click on the missions like in freeplay, so it was almost impossible to find some of the missions 

Link to comment
Share on other sites

Maybe the solution is to make the game run as a mission then?

I have made most of it work for Copenhagen, only problem with it, was that i couldn't figure out a way to make it possible to click on the missions like in freeplay, so it was almost impossible to find some of the missions 

Creating a mission script is very hard. Also, people would not be able use the mod in multiplayer.

Did you create your own mission script with custom function calls or did you use the ones made by the Germans?

Link to comment
Share on other sites

Creating a mission script is very hard. Also, people would not be able use the mod in multiplayer.

Did you create your own mission script with custom function calls or did you use the ones made by the Germans?

 

Created my own, Check Helping Peter if you like. 

Its not much harder than command scripts, i actually find it easier :) 

Link to comment
Share on other sites

I've seen it. Its a work of art bro. Its beautiful. I could never imagine making one myself. Someday probably.

 

It looks confusing because there are so much script in the same document :D 

 

But what i did was taking a script from one of the original missions and delete everything except the headlines. Then i used US army mod as a reference to see how the Hoppah did it. 

The rest was just makeing the features i wanted one at a time :) 

Link to comment
Share on other sites

It looks confusing because there are so much script in the same document :D 

 

But what i did was taking a script from one of the original missions and delete everything except the headlines. Then i used US army mod as a reference to see how the Hoppah did it. 

The rest was just makeing the features i wanted one at a time :)

Thanks for the hint. I am inspired to do this someday.

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...