Speedmod

Ask questions, discuss ideas, get answers

Speedmod

Postby tonawandares » Tue Apr 30, 2019 12:32 am

All,

I just have a question regarding using the following code:

Code: Select all
ObjectTemplate.active IraqSoldier
ObjectTemplate.speedMod .1
ObjectTemplate.angleMod .1
rem
ObjectTemplate.active USSoldier
ObjectTemplate.speedMod .1
ObjectTemplate.angleMod .1
rem


Does this affect what impacts the soldier, or what the soldier impacts, or both?

I am using this in an urban environment to minimalize the damage a soldier incurs when jumping down from low buildings or dropping off a few feet.
A person isn't going to die dropping 8 ft. They will take some damage but they aren't going to die.
Dropping off a 3 story building...uh yep, you're going to die.

There are some reports of concerns about soldiers taking "less" damage from weapons and I'm concerned.

Thanks,

~ tona
tonawandares
 
Posts: 20
Joined: Mon Mar 26, 2018 12:51 pm

Re: Speedmod

Postby Classical Modder » Tue Apr 30, 2019 4:34 pm

tonawandares wrote:All,

I just have a question regarding using the following code:

Code: Select all
ObjectTemplate.active IraqSoldier
ObjectTemplate.speedMod .1
ObjectTemplate.angleMod .1
rem
ObjectTemplate.active USSoldier
ObjectTemplate.speedMod .1
ObjectTemplate.angleMod .1
rem


Does this affect what impacts the soldier, or what the soldier impacts, or both?

I am using this in an urban environment to minimalize the damage a soldier incurs when jumping down from low buildings or dropping off a few feet.
A person isn't going to die dropping 8 ft. They will take some damage but they aren't going to die.
Dropping off a 3 story building...uh yep, you're going to die.

There are some reports of concerns about soldiers taking "less" damage from weapons and I'm concerned.

Thanks,

~ tona


It impacts the soldier itself, and nothing else. This is some interesting code, thanks for posting it. I was actually looking for something like this.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 473
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: Speedmod

Postby russ » Tue Apr 30, 2019 11:22 pm

The only normal gameplay events I can think of that would have their damage modified unintentionally would be getting hit by vehicles and possibly knife, but I'd need to look up how the knife deals damage.

Other options:

* Change the material/material damage modifier value for collisions. This would avoid changing the damage taken getting hit by a vehicle.
* Change the damage value for given materials.
* Add a kit part that damps collision damage
russ
 
Posts: 68
Joined: Sun Oct 29, 2017 8:12 am

Re: Speedmod

Postby Skull Kid » Sun May 12, 2019 10:48 am

I'd want to make a specific vehicle invulnerable to all kinds of damage. So if anyone here knows how that's accomplished, please don't hesitate to reply here, or PM me.

EDIT: I found it... it's ObjectTemplate.hasArmor. It needs to be set to 0, then it's completely indestructible to anything.
Regards,

Skull Kid
User avatar
Skull Kid
 
Posts: 124
Joined: Fri Aug 03, 2012 8:44 pm
Location: Sweden


Return to 1942 Modding Discussion

Who is online

Users browsing this forum: No registered users and 14 guests