View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 04-15-2013 , 03:09   Re: [TF2] Friendly Mode
Reply With Quote #38

You have to search for them with findentitybyclassname, and hook entity "player"
To change hitbox, just change their surroundingvexmins and surroundingvecmaxs if i recall correctly, just make four static float arrays, two for reducing hitbox, and two for restoring it.

Another problem... Not sure if this will impact you.
If you set the notarget flag before inventory application, clients will not recieve their items properly, and will become civilian mode. Similarly, it can hapen when they touch a supply locker when under the effect of notarget... items will not be generated properly. This is most noticable when they have advanced options set to not move them in their spawn room when respawning.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 04-15-2013 at 03:16.
friagram is offline