Trouble with bomb damage and radius

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Unspecified
Private
Posts: 6
Joined: Wed Jul 10, 2002 6:03 am

Trouble with bomb damage and radius

Post by Unspecified »

Has anyone successfully been able to alter the bomb damage and radius settings in their maps?

I have set up exploders and objectives based on the tutorials here at MOH Design and everything is working just dandy....except I can't seem to change the damage and radius settings.

I'm referring to these script entries:


level.bomb_damage = 200
level.bomb_explosion_radius = 640

I can change the number values in the script, but it seems to have no effect in the game.

Any help would be appreciated....
Wombat
Colour Sergeant
Posts: 93
Joined: Fri Jun 14, 2002 5:10 pm
Location: Adelaide, Australia
Contact:

Post by Wombat »

If you are using the obj_dm.scr then those values are in that script as well, and that is why you cannot change them. Because they override your settings. Include the obj_dm.scr in your script file, and you will be able to change them .

instead of

$bomb thread global/obj_dm.scr::bomb_thinker

use

$bomb thread bomb_thinker

etc..... after you include it.....

if you are using the exploder.scr

then after you call the exploder.scr:: #set

run a Radiusdamage command

format
radiusdamage $bomb.origin radius(quake units) damage
ie
radiusdamage $bomb.origin 640 200
Wombat's
Eats roots shoots then leaves...........
Post Reply