sdktools: Add SetCollisionGroup native (#1461) (#1507)

* Add SetCollisionGroup native

* Add newline to end of file

* Fix gamedata locations

* Remove extra spaces

* Fix gamedata formatting

* Add Windows signature for CS:GO

* Fix native doc comment

* Revert formatting change

* Change references of client -> entity

* Moved CallWrapper into method

* typofix

Co-authored-by: Kyle Sanderson <[email protected]>
This commit is contained in:
Adam Short
2021-06-24 15:04:10 -07:00
committed by GitHub
co-authored by Kyle Sanderson
parent 3b2fa89926
commit a9d3cf4574
5 changed files with 75 additions and 0 deletions
+9
View File
@@ -351,3 +351,12 @@ native void SetClientName(int client, const char[] name);
* @error Lack of mod support.
*/
native int GivePlayerAmmo(int client, int amount, int ammotype, bool suppressSound=false);
/**
* Changes an entity's collision group (CBaseEntity::SetCollisionGroup).
*
* @param entity The entity index.
* @param collisionGroup Collision group to use.
* @error Invalid entity or lack of mod support.
*/
native void SetCollisionGroup(int entity, int collisionGroup);