Add sm_gotocouch & effect intensity

This commit is contained in:
2026-09-29 02:41:20 +01:00
parent 867b3bfbba
commit 598dc20ae3
3 changed files with 133 additions and 2 deletions
+10
View File
@@ -67,6 +67,15 @@ native int Couch_Spawn(int client);
*/
native bool Couch_Bring(int client);
/**
* Teleports the client onto the couch, or beside it when the top is blocked. The client keeps
* their view angles and arrives with no velocity.
*
* @param client Client to teleport. Must be in game.
* @return True on success, false if there is no couch.
*/
native bool Couch_Goto(int client);
/**
* Removes the couch and forgets its placement.
*
@@ -131,6 +140,7 @@ public SharedPlugin __pl_Couch =
MarkNativeAsOptional("Couch_IsPlaced");
MarkNativeAsOptional("Couch_Spawn");
MarkNativeAsOptional("Couch_Bring");
MarkNativeAsOptional("Couch_Goto");
MarkNativeAsOptional("Couch_Remove");
MarkNativeAsOptional("Couch_IsEffectEnabled");
MarkNativeAsOptional("Couch_SetEffectEnabled");