Raised This Month: $ Target: $400
 0% 

Solved Check if player can spray.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 04-07-2017 , 13:43   Re: Check if player can spray.
Reply With Quote #2

This is the exact code the game uses to check if a player can spray: https://mxr.alliedmods.net/hlsdk/sou...layer.cpp#3474

The best way would be to hook CSprayCan::Spawn(). I don't know if it's possible without Orpheu/Okapi because it's not linked to any classname so Hamsandwich can't do it and I don't think there's a way to identify that entity.
klippy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode