weapon mod
weapon mod
how can i increase the damage of the railgun in quake 3?i have yet downloaded the code of the game...somebody can explain me step by step what i have to do?thank you very much!!!
Re: weapon mod
grab quad...
but honestly, what little I know about creating worlds for this game, I don't know a way to increase any weapons powers through Radiant...
Might try the programing forum if you get no answers here.
but honestly, what little I know about creating worlds for this game, I don't know a way to increase any weapons powers through Radiant...
Might try the programing forum if you get no answers here.

-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: weapon mod
Hack G_Damage() in game/g_combat.c and bump the damage when mod == MOD_RAILGUN.
Re: weapon mod
Seems a strange way to do it, mis?
I'd just change the damge = 100 constant in weapon_railgun_fire (game/g_weapons.c)
I'd just change the damge = 100 constant in weapon_railgun_fire (game/g_weapons.c)
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: weapon mod
I was anticipating future questions about the RL, BFG, etc. 

Re: weapon mod
I have implemented the invisibility cheat into my mod in g_cmds.c What I would like to do is when its enabled to alter the damage for the gauntlet just for the person who has invisibility cheat.
//g_weapons.c in CheckGauntletAttack()
Change the 50 to 1000 and when the cheat is disabled to change it back to 50. Any recommendations on how to do this?
//g_weapons.c in CheckGauntletAttack()
Code: Select all
damage = 50 * s_quadFactor;
Re: weapon mod
Add a qboolean to the clientPersistant_t struct. Give it a meaningful name. When the user executes the command you specified for invisibilty mode set this booleans value to true, do this in the function you call in g_cmds to make the player invisible. In CheckGauntletAttack() make a check like sonexus024 wrote:I have implemented the invisibility cheat into my mod in g_cmds.c What I would like to do is when its enabled to alter the damage for the gauntlet just for the person who has invisibility cheat.
//g_weapons.c in CheckGauntletAttack()Change the 50 to 1000 and when the cheat is disabled to change it back to 50. Any recommendations on how to do this?Code: Select all
damage = 50 * s_quadFactor;
Code: Select all
if(ent->client->pers.YOUR_BOOLEAN) {
damage = 1000;
} else {
damage = 50;
}
Code: Select all
client->pers.connected = CON_CONNECTED;
client->pers.enterTime = level.time;
client->pers.teamState.state = TEAM_BEGIN;
client->pers.YOUR_BOOLEAN = qfalse; // New line for feature