PDA

View Full Version : Changing the Level of Damage caused by a weapon?


Styles2304
12-10-2004, 06:56 AM
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).

razorace
12-10-2004, 07:54 AM
Well, there's a cvar you can use to change the damage caused by the light saber but not the other weapons.

Styles2304
12-10-2004, 12:19 PM
well that sucks . . . thanks though.

razorace
12-10-2004, 03:42 PM
You're welcome.

GangsterAngel
12-19-2004, 11:26 AM
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.

razorace
12-19-2004, 05:36 PM
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