This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Really god mode.


Post New Thread Reply   
 
Thread Tools Display Modes
rauros
Member
Join Date: Dec 2007
Old 04-09-2010 , 10:07   Re: Really god mode.
Reply With Quote #11

Quote:
Originally Posted by psychonic View Post
I hadn't thought about that. There is actually a define for this (as well as the other flags), FL_GODMODE http://docs.sourcemod.net/api/index....ad=file&id=47&
Well, this seems to be the better way to do a multisource godmode. I don't know why there is not a function already implemented on SourcePawn...
rauros is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-09-2010 , 10:27   Re: Really god mode.
Reply With Quote #12

Quote:
Originally Posted by rauros View Post
Well, this seems to be the better way to do a multisource godmode. I don't know why there is not a function already implemented on SourcePawn...
To keep the API clean.

There's many other functions that could be added, but Sourcemod is made to give the building blocks and let plugins put them together and/or add more blocks.

With just SM, you can already do it simple like:
PHP Code:
SetEntProp(client"m_fFlags"GetEntityFlags(client)|FL_GODMODE); 
The only other thing I foresee being added that would make sense to be added is a SetEntityFlags stock that, like GetEntityFlags, looks at the gamedata to see what the current game's flag prop is called (I don't believe it is "m_fFlags" in all, else there would be no need for it in the gamedata).
psychonic is offline
Reply



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 02:40.


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