mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 12:53:20 +00:00
Made some plugins optional
This commit is contained in:
parent
53191a9e3c
commit
0179109b05
6 changed files with 15 additions and 3 deletions
|
@ -17,6 +17,7 @@ void ActivateAutoPunish(int client) {
|
|||
}
|
||||
|
||||
void SetWitchTarget(int witch, int target) {
|
||||
#if defined _behavior_included
|
||||
Behavior behavior = Behavior(witch, WITCH_QUERY);
|
||||
BehaviorAction action = behavior.CurrentAction.Last;
|
||||
|
||||
|
@ -25,6 +26,9 @@ void SetWitchTarget(int witch, int target) {
|
|||
|
||||
IActionResult result; result.Init(CHANGE_TO, newaction);
|
||||
result.ToAction(action);
|
||||
#else
|
||||
PrintToServer("[FTT] SetWitchTarget() called when behaviors plugin not found");
|
||||
#endif
|
||||
}
|
||||
|
||||
bool ToggleMarkPlayer(int client, int target) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue