Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You can add a server.nut file to your scripts/vscripts directory if you haven't already, and in that file you can add your own custom chat triggers and command. Here's a code example:
If that doesn't work, you may need to remove the if statement that checks if the player is an admin.
Let me know if you need anything else.
FYI, I had already tried the "!limit boomer" command etc... but it did not seem to work (tested by setting to 0 but some still appeared - otherwise you're right, if you raise the limit of one type but don't change the rest you might not see a difference).
I may need more time to figure it out but what puzzles me right now is that the example above looks like it is about limiting boomers, yet I don't see anywhere the text "!limit boomer" in the example so it is not clear to me how it is set that "!limit bommer" would trigger that file or that particular bit of the file to activate when used in chat. I presume this is set by the function "ChatTriggers::boomer_limit" but since the text does not exaclty correspond there must be some "translating " rule which I do not understand (or else this is specified in another file). Thus whilst I might be able to adapt this to make it work with other SI, I'm not sure I can work it out for other commands such as respawn time.
Sorry if my question is not clear in which case it is probably due to my limited experience with squirrel (I've only used simpler scripts so far, modifying basic cvars and director options) and you'd be entitled to respond I just need to get more experience to understand.
This is an example on how you could add additional chat commands that can do whatever you want with. So you can add another command using the template above, to change respawn intervals, or whatever.
Let me know if you need any assistance.
Since you're mentionning the console, I will bother you with one further question for now although it might best belong in another thread. The alternative to chat commands is of course make changes directly through the console but the problem I ran into there is that whilst I could make it work for cvars, I could not find the proper syntax to modify the director options (which I had no problem to do with mutations). For instance, something like director_cm_MaxSpecials X (and some other variants I tried) does not work when using the console. Any idea?