alexx860 Posted February 11, 2006 Posted February 11, 2006 Hi! How do you make a "timer" never finish? example : ent->client->invulnerableTimer How do you make the bubble never disappear? I tried ent->client->invulnerableTimer = -1 or ent->client->invulnerableTimer = 0 but no luck.. thanks in advance alexx860
Vruki Salet Posted February 12, 2006 Posted February 12, 2006 How about ent->client->invulnerableTimer = level.time put some place where it's updated constantly?
alexx860 Posted February 12, 2006 Author Posted February 12, 2006 My code is placed in g_cmds.c (I am modding for my clan and they want this "bubble protect" ) So do you know where is the best place for that who is updated constantly??
Vruki Salet Posted February 12, 2006 Posted February 12, 2006 Lots of places would be fine I guess. You could put it into ClientThink_real() in g_active.c but someone who knows more might have a better idea. There's a place there that says: // don't think if the client is not yet connected (and thus not yet spawned in) if (client->pers.connected != CON_CONNECTED && !isNPC) { return; } Put it next right after that. BTW what's this everlasting timer for exactly? Why mark the time at all?
alexx860 Posted February 12, 2006 Author Posted February 12, 2006 If I don't specify the time, it seems to be 0 so the protect don't work (nothing happens)
robo85045 Posted February 12, 2006 Posted February 12, 2006 ent->client->invulnerableTimer = Q3_INFINITE
alexx860 Posted February 13, 2006 Author Posted February 13, 2006 whats the difference between Q3_INFINITE and INFINITE?? I know INFINITE is about 100000 but Q3_INFINITE??
ensiform Posted February 13, 2006 Posted February 13, 2006 Q3_INFINITE is basically the definition for the ICARUS stuff but i think its used elsewhere also.
razorace Posted February 20, 2006 Posted February 20, 2006 alexx860 said: If I don't specify the time, it seems to be 0 so the protect don't work (nothing happens) seems to be 0? Just use it as a toggle then. IE set it to be 1 when it should active and to 0 when it shouldn't be.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.