This plugins is based on the assumption that special infected are allergic to drugs and survivors can use pills and medkid when incapacitated.
If you incapacitated or dominated by a boss, you can do the following things:
1: if you have pills , first aid kit or adrenaline, you can get up.
2: Crawl around to find pills , first aid kit, adrenaline and pistol ( sever must enable crawling).
3: Crawl to another incapacited survivor, and help him get up.
All above actions are performed by holding DUCK.
If there are any problem in plugin, please tell me.
ConVars:
"l4d_selfhelp_incap", "3", "self help for incap , 0:disable, 1:pill, 2:medkit, 3:both "
"l4d_selfhelp_grab", "3", " self help for grab , 0:disable, 1:pill, 2:medkit, 3:both "
"l4d_selfhelp_pounce", "3", " self help for pounce , 0:disable, 1:pill, 2:medkit, 3:both "
"l4d_selfhelp_ride", "3", " self help for ride , 0:disable, 1:pill, 2:medkit, 3:both "
"l4d_selfhelp_pummel", "3", "self help for pummel , 0:disable, 1:pill, 2:medkit, 3:both "
"l4d_selfhelp_edgegrab", "3", "self help for edgegrab , 0:disable, 1:pill, 2:medkit, 3:both "
"l4d_selfhelp_eachother", "1", "incap help each other , 0: disable, 1 :enable "
"l4d_selfhelp_pickup", "1", "incap pick up , 0: disable, 1 :enable "
"l4d_selfhelp_kill", "1", "kill attacker"
"l4d_selfhelp_hintdelay", "3.0", "hint delay"
"l4d_selfhelp_delay", "1.0", "self help delay"
"l4d_selfhelp_durtaion", "3.0", "self help duration"
"l4d_selfhelp_versus", "1", "0: disable in versus, 1: enable in versus"
Updating:
Add progress bar in l4d2 and sound effect.
Add convar for versus mode.
Fix some bug about when self help with pills, the health change to 1.
Now that sounds like the long awaited "survivor upgrades" from left4dead 1 . Just thinking of the "knife". I do have some questions:
1. you define "new slot" and "new solt". What´s "solt" for ?
2. line 274: Timers[client]=CreateTimer(1.0/TICKS, PlayerTimer, client, TIMER_REPEAT); If TICKS = 10 the timer gets executed 10 times in a second ? I have some doubts this stuff is running lagfree as it reminds me of "restricted zones" for l4d1 which per default only checked 2x /second for all players (32 checks / second on a 16vs server) and the engine was lagging like hell. Can anyone confirm this plugin is working lagfree on non vanilla servers such as 8vs8 or 10vs10 ?
3. please rename "medkid" in the code to "medkit".
4. As far as I understood the code there is no limit about how often you can free yourself from a SI by using kit/pills. There´s a lot of servers running the !usepoints / !buy plugin where you can buy medkits/pills. So do I and I think it can become too easy for survivors to escape an attack. Sure, you could make medkit more expensive but then no one can afford it to buy and use it for healing...
May I kindly ask you to make this plugin configurable? Add convars for every selfhelp action. The convars manage how often you can use the appropriate selfhelp. Then it would be like "survivor upgrades" in Left4Dead 1 where for example the "knife", "self revive" or "ledge grab" could be used exactly once in a round, not permanently.
Now that sounds like the long awaited "survivor upgrades" from left4dead 1 . Just thinking of the "knife". I do have some questions:
1. you define "new slot" and "new solt". What´s "solt" for ?
2. line 274: Timers[client]=CreateTimer(1.0/TICKS, PlayerTimer, client, TIMER_REPEAT); If TICKS = 10 the timer gets executed 10 times in a second ? I have some doubts this stuff is running lagfree as it reminds me of "restricted zones" for l4d1 which per default only checked 2x /second for all players (32 checks / second on a 16vs server) and the engine was lagging like hell. Can anyone confirm this plugin is working lagfree on non vanilla servers such as 8vs8 or 10vs10 ?
3. please rename "medkid" in the code to "medkit".
4. As far as I understood the code there is no limit about how often you can free yourself from a SI by using kit/pills. There´s a lot of servers running the !usepoints / !buy plugin where you can buy medkits/pills. So do I and I think it can become too easy for survivors to escape an attack. Sure, you could make medkit more expensive but then no one can afford it to buy and use it for healing...
May I kindly ask you to make this plugin configurable? Add convars for every selfhelp action. The convars manage how often you can use the appropriate selfhelp. Then it would be like "survivor upgrades" in Left4Dead 1 where for example the "knife", "self revive" or "ledge grab" could be used exactly once in a round, not permanently.
Thank you.
1. "new slot", I do not know your exact meaning. According to the ConVars setting, when you incapacitated, there needs a algorithm to decide whether you can selfhelp and which items(pills,adrenaline, medkit) should be used to selfhelp.
2. From the time I use it, I have not found this plugin will make the server get into perceived lagging state. If you still worry about it, you can set TICKS little small.
3. I will change it, thank you.
4. I run a server that only have four medkit no matter how many survivors in it, so I have not think your question before, I will try my best to design a convar to limit the using of selfhelp as you said, selfhelp could be used exactly X times in a round , but I am not sure It will satisfied you.
Is there any way, so when you are incapped, or hang and you help yourself, you can force animation and progress bar like somebody could help you? This was possible in l4d1 Survivor Upgrades as one upgrade ( forgot the name of it ) and if you were hanging or incapped, you pressed and hold USE key like you use to save somebody else. And there was an animation of you getting up or getting up from ledge. If you don't understand PM me.