View Single Post
Re: Assist Needed, couple last pieces of info needed...
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Assist Needed, couple last pieces of info needed... - 05-02-2004

Quote:
Originally Posted by BAStumm
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?
Tried pent->v.v_angle.y ?

Quote:
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...
Tried pent->v.owner ?

Quote:
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...
Same as above... when you've got questions like these, USE and ABUSE my pmtools plugin... it displays an entvars dump of any entity, draw its bounding box and resolves pointers and bitmasked values directly in the game... fire up a listenserver, run around, point at an entity and order, it answers

http://racc.bots-united.com/releases/pmtools_plugin.exe



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote