View Single Post
TFC - Teleporters?
Old
  (#1)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default TFC - Teleporters? - 02-10-2005

Does anyone know a reliable way to find a teleporter entrance/exit's owner?
Or how to find a teleporter entrance's exit point?

I read in an archived post from the old hpb bot forums ( somewhere, found it while looking on google ) and someone said that engineer's buildings do not have pev->owner set.

If this is the case, how can we tell who a teleporter belongs to?
I have an idea but its a really big hack...

When the teleporter entity is created...

- Find entities in a small sphere around the teleporter
- Is it an engineer?
- Do the team colors match up?
- Is the engineer's pev->viewmodel cleared?
- Found the owner and the teleporter entrance.

For the exit its basically the same thing but I'd have to check for entity removals as well.
This could cause problems if two engineers build teleporters around the same time close together so thats why I'm asking if there is a better way.
  
Reply With Quote