Jump to content

Home

Infinite timer


alexx860

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...