Ok another post from me gathering infomation and seeing how i can improve.
i got this peice of code from coe3arena again but i wanna add it to the weapon recharge bar. here is the code. how would i go about this?
in the g_local
#define FL_BOOTS 0x00006000 // Anti Gravity Boots
In the g_cmds
/*
=================
Cmd_Boots_f function for turning boots on/off
=================
*/
void Cmd_Boots_f( gentity_t *ent ) {
char *msg; // message to player
ent->flags ^= FL_BOOTS;
if (!(ent->flags & FL_BOOTS))
msg = "Anti Gravity boots OFF
";
else msg = "Anti Gravity boots ON
";
trap_SendServerCommand( ent-g_entities, va("print \"%s\"", msg));
}
in the g_active
} else {
client->ps.pm_type = PM_NORMAL;
}
client->ps.gravity = g_gravity.value; // Add this,
if (ent->flags & FL_BOOTS) // umm and this,
client->ps.gravity = g_gravity.value * 0.20; // yeah... this too
Thx For the read hope this can help you aswell as me
aussie