damage_system of custom map

Ask questions, discuss ideas, get answers
maehnaebteheu
Posts: 18
Joined: Sat May 22, 2010 2:52 pm

Re: damage_system of custom map

Post by maehnaebteheu »

still doesn't work ... but ... doesn't matter ...

another question: does anybody know how to raise the damage you get for being outside world?

I tried

Code: Select all

ObjectTemplate.Active GermanSoldier
ObjectTemplate.damageFromBeingOutSideWorld 90
but doesn't work :(
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

yeh, 10 is orig value if i remember correct so up it until you get what you want

Code: Select all

game.damageForBeingOutSideWorld 10
maehnaebteheu
Posts: 18
Joined: Sat May 22, 2010 2:52 pm

Re: damage_system of custom map

Post by maehnaebteheu »

is it per cent? like damage on vehicles? and is it only for being outside map or also for outside map area by texture?
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

its the damage for that "warning you are leaving the combat area"

if 10 is original value and you change it to 1 it will take ten times longer for the soldier to die or vice versa
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: damage_system of custom map

Post by Apache Thunder »

Correct. In my BFHeroes mod, I upped to 350 or so. I made it so soldiers die nearly instantly when the time runs out. :D (soldier HP is much higher in this mod then vanilla, hence the larger number. :D )
ImageImageImage
I have cameras in your head!
maehnaebteheu
Posts: 18
Joined: Sat May 22, 2010 2:52 pm

Re: damage_system of custom map

Post by maehnaebteheu »

hmmm ..strange ... why doesn't work it for me? :(

got this code:

Code: Select all

ObjectTemplate.Active GermanSoldier
ObjectTemplate.HitPoints 300
ObjectTemplate.MaxHitPoints 300
objectTemplate.healFactor 5
objectTemplate.selfHealFactor 5
objectTemplate.repairFactor 5
ObjectTemplate.DamageFromWater 0
ObjectTemplate.damageFromBeingOutSideWorld 90

ObjectTemplate.Active USSoldier
ObjectTemplate.HitPoints 300
ObjectTemplate.MaxHitPoints 300
objectTemplate.healFactor 5
objectTemplate.selfHealFactor 5
objectTemplate.repairFactor 5
ObjectTemplate.DamageFromWater 0
ObjectTemplate.damageFromBeingOutSideWorld 90
Everything works except the damagefrombeingoutsideworld :/

BTW: Today I will release the map. Look here

EDIT: Oh I had "from" instead of "for" .. strange because I got the code from the command list page ... maybe it works now ;)
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: damage_system of custom map

Post by Apache Thunder »

Unless your having different amount of damage per soldier, why not just use the game.damageForBeingOutSideWorld command?
ImageImageImage
I have cameras in your head!
maehnaebteheu
Posts: 18
Joined: Sat May 22, 2010 2:52 pm

Re: damage_system of custom map

Post by maehnaebteheu »

works now .. thx ;)
Post Reply