Thread
:
+/- Command
View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
10-04-2022 , 00:50 Re: +/- Command
#
4
I don't play Half-Life 1 but I did get a server set up and downloaded the game and I was able to reproduce what you're talking about.
You should be able to add a workaround for this. Since you can never see the "-command" without first seeing the "+command", you can simply check in your "-command" if the "+command" was used just prior to the execution. In other words, you simply prevent multiple executions of the "-command" in a row.
To do this, simply keep track of the state for each player. At the end of your "+command", set it to true. In your "-command", only execute the code if the state is true. Then unconditionally set the state back to false at the end of the "-command".
__________________
Polymorph
,
GitHub
fysiks
View Public Profile
Send a private message to fysiks
Find More Posts by fysiks