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
1. Stumble
2. Drop defib
Write either one of them in "director_base_addon.nut".
There are also other alternative ways, & other modders may have other alternative ways.
Or maybe I did something wrong: I put the file in scripts/vscripts, didnt work ; I put it in a vpk, didn't work ; I've tried renaming the file to the map name, didn't work.
So, probably we can go back to the beginning & try to modify your "all-in-one command" instead:
Does this your all-in-one command also use vscript? If it does, then you can replace the mechanism to give the explosive ammo with "player.DropItem(itemclassname)". This will make the player trying to revive a bot with your all-in-one command to drop their defib. Alternatively, you can use "player.SwitchToItem(itemclassname)" to force the player to switch to other item (like primary or secondary gun) when they try to use defib on a dead bot.
The problem with my current solution is that it's manual, so I have to be on the lookout for some guy suddenly deciding it's time to revive some bots, and press the button in time.
I was hoping for a peace-of-mind automatic solution.
But thanks for trying
The problem was a missing closed parenthesis in the "if"
I'm going with the stumble solution because the drop defib actually deletes the defib instead of dropping it.
Thank you very much
Btw you can also add "ClientPrint" to let the player know that they can't use defib on bots, like:
So finally I'm using this:
Thanks again