weapon mod
Posted: Fri Feb 22, 2008 10:39 pm
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!!!
Code: Select all
damage = 50 * s_quadFactor;
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