LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   General Editing (http://www.lucasforums.com/forumdisplay.php?f=156)
-   -   Changing the Level of Damage caused by a weapon? (http://www.lucasforums.com/showthread.php?t=141247)

Styles2304 12-10-2004 05:56 AM

Changing the Level of Damage caused by a weapon?
 
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 06: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 11:19 AM

well that sucks . . . thanks though.

razorace 12-10-2004 02:42 PM

You're welcome.

GangsterAngel 12-19-2004 10: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 04: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


All times are GMT -4. The time now is 02:06 AM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.