2016-12-16 23:45:05 +01:00
|
|
|
#if defined _cssfixes_included
|
|
|
|
#endinput
|
|
|
|
#endif
|
|
|
|
#define _cssfixes_included
|
|
|
|
|
|
|
|
forward void OnRunThinkFunctions(bool simulating);
|
2019-10-01 18:49:38 +02:00
|
|
|
forward void OnPrePlayerThinkFunctions();
|
|
|
|
forward void OnPostPlayerThinkFunctions();
|
2016-12-16 23:45:05 +01:00
|
|
|
forward void OnRunThinkFunctionsPost(bool simulating);
|
|
|
|
|
2019-11-17 18:28:39 +01:00
|
|
|
// Block TriggerMoved from being called at all for an entity by setting the bit to 1.
|
|
|
|
native void BlockTriggerMoved(int map[2048 / 32], bool set);
|
|
|
|
|
|
|
|
// Block SolidMoved from being called at all for an entity by setting the bit to 1.
|
|
|
|
native void BlockSolidMoved(int map[2048 / 32], bool set);
|
|
|
|
|
|
|
|
// Block clients SolidMoved from touching an entity by setting the bit to 1 in the clients map.
|
|
|
|
native void FilterClientEntityMap(int map[((MAXPLAYERS + 1) * 2048) / 32], bool set);
|
|
|
|
|
|
|
|
// Block triggers TriggerMoved from touching any client by setting the bit to 1 for the entity index.
|
|
|
|
native void FilterTriggerTouchPlayers(int map[2048 / 32], bool set);
|
2019-10-07 23:59:59 +02:00
|
|
|
|
2019-10-08 18:08:24 +02:00
|
|
|
// Map entities to client entity in FireBullets/SwingOrStab ShouldHitEntity.
|
|
|
|
// Aka. shoot and knife through physboxes that are parented to teammates (white knight, gandalf, horse, etc.)
|
|
|
|
native void PhysboxToClientMap(char map[2048], bool set);
|
|
|
|
|
2017-08-04 09:28:58 +02:00
|
|
|
public Extension __ext_CSSFixes =
|
2016-12-16 23:45:05 +01:00
|
|
|
{
|
|
|
|
name = "CSSFixes",
|
|
|
|
file = "CSSFixes.ext",
|
|
|
|
#if defined AUTOLOAD_EXTENSIONS
|
|
|
|
autoload = 1,
|
|
|
|
#else
|
|
|
|
autoload = 0,
|
|
|
|
#endif
|
|
|
|
#if defined REQUIRE_EXTENSIONS
|
|
|
|
required = 1,
|
|
|
|
#else
|
|
|
|
required = 0,
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
|
|
#if !defined REQUIRE_EXTENSIONS
|
|
|
|
public __ext_CSSFixes_SetNTVOptional()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|