alexx860 Posted February 11, 2006 Share 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 Link to comment Share on other sites More sharing options...
Vruki Salet Posted February 12, 2006 Share Posted February 12, 2006 How about ent->client->invulnerableTimer = level.time put some place where it's updated constantly? Link to comment Share on other sites More sharing options...
alexx860 Posted February 12, 2006 Author Share 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?? Link to comment Share on other sites More sharing options...
Vruki Salet Posted February 12, 2006 Share 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? Link to comment Share on other sites More sharing options...
alexx860 Posted February 12, 2006 Author Share Posted February 12, 2006 If I don't specify the time, it seems to be 0 so the protect don't work (nothing happens) Link to comment Share on other sites More sharing options...
robo85045 Posted February 12, 2006 Share Posted February 12, 2006 ent->client->invulnerableTimer = Q3_INFINITE Link to comment Share on other sites More sharing options...
alexx860 Posted February 13, 2006 Author Share Posted February 13, 2006 whats the difference between Q3_INFINITE and INFINITE?? I know INFINITE is about 100000 but Q3_INFINITE?? Link to comment Share on other sites More sharing options...
Vruki Salet Posted February 13, 2006 Share Posted February 13, 2006 Q3_INFINITE = 16777216 Link to comment Share on other sites More sharing options...
ensiform Posted February 13, 2006 Share Posted February 13, 2006 Q3_INFINITE is basically the definition for the ICARUS stuff but i think its used elsewhere also. Link to comment Share on other sites More sharing options...
razorace Posted February 20, 2006 Share Posted February 20, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.