View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 05-06-2013 , 05:33   Re: [TF2] Spawn Stickybomb Removal
Reply With Quote #13

Quote:
Originally Posted by ddhoward View Post
Caching the locations of the spawn doors is on the to-do list on the first post. In fact, it is the ONLY thing on that list. :\ Unless you mean something else that I don't understand.

Wouldn't OnEntityCreated return the location of the bomb when it spawns, rather than where it lands? All a demo would have to do is launch his stickies from a large distance to get around this plugin's protections.
mmhmm you use a timer, so it destroys them reliably. Honestly it would not be a bad idea to just use strcmp and set it to something like tf_projectile and nuke them all if the red>blu room or blu> red room. Some people hate getting pill/rocket spammed, as well as jarated or milked or whatever. So that would catch all, with the onentitycreated.

I have a few plugins that cache spawn points. You don't have to store the entities by reference, since they're pretty stable and they won't get deleted (usually) but I guess you never know what will happen in some weird maps.

One thing about using the Origin, is that entity origins can be moved on brush entities (I think?) to strange areas, if you so desire. They don't have to be in the middle of the brush. It may be wiser to calculate the center of the brush based on the mins/maxs of the brush (respawnrooms dont' have to be square, but it doesn't matter anyways, really). Then calculate distance from this point, and cache it, and pair to the ent.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline