View Single Post
Assist Needed, couple last pieces of info needed...
Old
  (#1)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Assist Needed, couple last pieces of info needed... - 05-02-2004

Angle Sentry Gun is Facing
Code:
for (i = 0; (pent = UTIL_FindEntityByClassname(pent, "building_sentrygun")) != NULL; i++)
		{
				8<----SNIP----
				sprintf(temp_sg[SG_ANGLE][i + 1], "%f", pent->v.angles.y);
				8<----SNIP----
}
Swear this worked for a while and then stopped... But not positive. I want the angle the Sentry Gun is facing. Any help?

Player Total Time Connected
Currently I am looking at client connect or something. I was told i can get the same data as "status" uses for player total connected time by someone on the statsme team but for the life of me I can't find it, searched their source too...

Entity is held by player
Think bomb in cs or flag in tfc. An entity that can be picked up and carried. I want to add a flag to the info about the player that he is holding the "goal item" or whatever. How can I determin that the bomb is carried by "this" player when looping through indexent. Looking for a solution hopefully works for bomb in cs, flag in tfc, documents in dod, etc. but will settle for mod specifics...

TFC Buildings
How can I tell which player built/owns a sentry gun? do i have to track it when its built and remember or is there a way to get on the fly? referring to sentry guns, teleporters and dispensers...

I may have a couple more but thats the bulk for now.

TIA






  
Reply With Quote