Jump to content

Home

Changing the Level of Damage caused by a weapon?


Ub3rl33t2304

Recommended Posts

Posted

Pretty straight forward question . . . I was wondering, without having to do havy coding . . . perhaps a cfg file somewhere, if you could change the ammount of damage caused by a weapon. For instance, keeping weapons normal except the saber which would always give a one hit kill (the way it should).

  • 2 weeks later...
Posted

g_combat.c

G_Damage

 

add at the top

( under all the ints )

 

if(mod==MOD_BLASTER)damage=damage+ BlasterDamage.integer

 

 

. Obviously u would have to setup the BlasterDamage,

then the Server can just add its own extra damage in the console.

 

but no , it cant be done without having to do some coding.

Posted

Well, if you're going to change the code, it would be MUCH easier to just change the damage value of the weapon bolt when it's spawned in it's own spawn function in g_weapons.c

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...