The passflags are only supported by SourceHook for virtual hooks and are ignored for detours with DynamicDetours. This caused confusion, so throw an error when trying to set e.g. the DHookPass_ByRef flag on detour arguments.
We always created a new vector object instead of changing the passed in vector directly. This works for the function being called using our changed values - but the caller doesn't see the changed values if it's passing a vector by reference.
Only create a new vector if there isn't one being passed in and set the values directly in the passed in vector otherwise.
* Add a PluginIterator methodmap
* Follow convention
* Update sourcemod.inc
* Turn method ReadPlugin into property Plugin
* Requested change
* Update sourcemod.inc
* Curse you VSC
* Follow behavior of other iterators instead of the natives
* Fix a stray space
* Implement a hacked CPluginIterator
* Oops
Copy paste go brr
* Revert a change made before the custom impl
The passflags are only supported by SourceHook for virtual hooks and are ignored for detours with DynamicDetours. This caused confusion, so throw an error when trying to set e.g. the DHookPass_ByRef flag on detour arguments.
We always created a new vector object instead of changing the passed in vector directly. This works for the function being called using our changed values - but the caller doesn't see the changed values if it's passing a vector by reference.
Only create a new vector if there isn't one being passed in and set the values directly in the passed in vector otherwise.
Adds an OnPlayerRunCmdPre forward in order for plugins to be able to hook OnPlayerRunCmd with the guarantee that none of the parameters have been modified by other plugins. As such, OnPlayerRunCmdPre's parameters cannot be modified and are read-only.
Plugins that wish to use OnPlayerRunCmdPre can maintain backwards compatibility with SourceMod 1.10 by falling back to OnPlayerRunCmd if the Pre variant was never fired.
* DHooks: Allow setting CBaseEntity* param to NULL #1751
The param had to be a valid entity and wasn't allowed to be set to NULL. Behave similar to SetReturn which maps INVALID_ENT_REFERENCE (or -1) to NULL.
* Update include documentation
* Update offsets for ZPS 3.2
Zombie Panic! Source Version 3.2 released and these are the updated offsets.
* Update offsets for 3.2
ZPS 3.2 has been release and these are the updated offsets / signatures.
* ZPS: Add missing offsets.
Adds support for OnTakeDamage_Alive, GetMaxHealth, Blocked, Reload and GroundEntChanged.
I wasn't aware these were missing entirely or I would have pushed them with the previous PR.
* ZPS Add missing offsets.
Adds support for GivePlayerAmmo.
Wasn't aware these were missing the first place.
* Fix ForcePlayerSuicide not properly working in ZPS
ZPS requires the second bool parameter to be true otherwise it won't do anything for players in the lobby or delayed for players on either team 2 or team 3.
* Fixed breaking code for other mods.
Added bForce which is set to true for zps.
* Update offsets for ZPS 3.2.4
Updates the offset
* Update offsets for ZPS 3.2
Zombie Panic! Source Version 3.2 released and these are the updated offsets.
* Update offsets for 3.2
ZPS 3.2 has been release and these are the updated offsets / signatures.
* ZPS: Add missing offsets.
Adds support for OnTakeDamage_Alive, GetMaxHealth, Blocked, Reload and GroundEntChanged.
I wasn't aware these were missing entirely or I would have pushed them with the previous PR.
* ZPS Add missing offsets.
Adds support for GivePlayerAmmo.
Wasn't aware these were missing the first place.
* Fix ForcePlayerSuicide not properly working in ZPS
ZPS requires the second bool parameter to be true otherwise it won't do anything for players in the lobby or delayed for players on either team 2 or team 3.
* Fixed breaking code for other mods.
Added bForce which is set to true for zps.
* Update offsets for ZPS 3.2
Zombie Panic! Source Version 3.2 released and these are the updated offsets.
* Update offsets for 3.2
ZPS 3.2 has been release and these are the updated offsets / signatures.
* Add LookupAttachment and GetAttachment
Offset and Signature for Zombie Panic! Source.
* Fix Gamerules not being available
This fixes the issue that would throw an error when trying to use SDKCall with type SDKCall_GameRules.
* Add SetOwnerEntity offset
Add SetOwnerEntity offset