AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Incapped Meds munch (https://forums.alliedmods.net/showthread.php?t=109655)

AtomicStryker 11-20-2009 03:36

[L4D & L4D2] Incapped Meds munch
 
15 Attachment(s)
Similar to Incapped Pills Pop, but has been updated with the new Infected events, descriptions have been updated since Adrenaline was introduced, and i changed the name.


In short: If you have Pills or Adrenaline, you can stand up from Incaps by yourself holding USE. This doesn't reset the Knockdown counter, which means you can get Black-and-White by doing this.


Many many functions version 1.1.0 introduces:

  • reviving yourself is not instant anymore, but creates a progress bar and can be interrupted
  • being interrupted causes you to drop your meds to the floor
  • you can pass meds to incapped people by looking at them and pressing melee
  • chat notifications for just about anything



Convars:
l4d2_incappedmedsmunch_delaytime (default 5) - how long before an incapped Survivor gets the announcement and can use his meds
l4d2_incappedmedsmunch_duration (default 3) - how long reviving yourself takes
l4d2_incappedmedsmunch_dropmeds (default 1) - does being interrupted cause you to drop meds


Changelog:
1.0.0 - release
1.1.0 - look above
1.1.1 - altered chat prints to be clearer, slight tweak for L4D compatibility
1.1.2 - added med dropping cvar, altered chat prints to only advert pills if you can actually use them right away
1.1.3 - removed self-ledge-save by pills possibility
1.1.4 - some bugfixing
1.1.5 - now uses SDKCall to revive and coolsauce way of checking reviving/pouncing/riding etc etc, fixes the BW issue, also found the cause for the crashes. NOW REQUIRES GAMEDATA FILE
1.1.6 - bugfixes to passing Meds and removing Meds
1.1.7 - bugfixing
1.1.8 - bugfix regarding 'incapped' tanks
1.1.9 - small bugfix with people leaving during munching

Visual77 11-20-2009 04:31

Re: [L4D2] Incapped Meds munch
 
Good job. Thanks :up:

MikesTooLz 11-20-2009 10:46

Re: [L4D2] Incapped Meds munch
 
Sweet, thanks a lot.

Dragonshadow 11-20-2009 21:49

Re: [L4D2] Incapped Meds munch
 
if you have adren does it still give you the speedboost?

AtomicStryker 11-21-2009 07:55

Re: [L4D2] Incapped Meds munch
 
No. Pills and Adrenaline work alike - they put you on your feet with "whatever survivor_revive_health is set to" temporary health.

Thraka 11-21-2009 19:32

Re: [L4D2] Incapped Meds munch
 
Stupid valve removed survivor_revive_successive_penalty. :(

AtomicStryker 11-22-2009 05:39

Re: [L4D2] Incapped Meds munch
 
You can code that in yourself easily, just hook revive_success, read m_currentReviveCount and set m_healthBuffer

delirium_trigger 11-22-2009 08:51

Re: [L4D2] Incapped Meds munch
 
Thanks! This will come in handy in Realism Mode lol. Is it just me or is L4D2 much more difficult, even on Expert? Dark Carnival was a pain for me.

Thraka 11-22-2009 21:28

Re: [L4D2] Incapped Meds munch
 
I know, I just think it's stupid they removed it... Why not just set it to 0 and leave it in? BAH!

AtomicStryker 12-09-2009 17:37

Re: [L4D2] Incapped Meds munch
 
Big whoop of an update to 1.1.0


Balancing and design changes aswell as new gameplay elements ;)

dirka_dirka 12-09-2009 19:48

Re: [L4D2] Incapped Meds munch
 
nice improvements - now can you make adrenaline and pills have different results?

adrenaline should be quicker, but give less health on revive... and wouldnt hurt to have the odd sound effects you get while on adrenaline.

AtomicStryker 12-10-2009 09:43

Re: [L4D2] Incapped Meds munch
 
I can't re-create the effects as the game has them, so i dont even try ;)

Newf 12-10-2009 11:46

Re: [L4D2] Incapped Meds munch
 
this is an awesome plugin. everyone on my server loves it. great job!! can't wait to try out the updated version.

Thanks!!

Edit, we were also pleased to find out it gets you up from ledges if hanging. :)

Visual77 12-10-2009 14:29

Re: [L4D2] Incapped Meds munch
 
Nice update, but I had to remove the part were the meds were being dropped at the floor :)

Newf 12-10-2009 15:04

Re: [L4D2] Incapped Meds munch
 
Quote:

Originally Posted by Visual77 (Post 1012433)
Nice update, but I had to remove the part were the meds were being dropped at the floor :)

lol yes i can see that becoming frustrating in the middle of a horde attack.

also, i had an idea...is it possible to make it so incapped people who can crawl are able to pick up pills if they are nearby?

ie - player gets incapped in a room where they happen to see pills close by, they crawl over, press e to pick up the pills, and then revive themselves.

Blakeocity 12-10-2009 15:40

Re: [L4D2] Incapped Meds munch
 
Another awesome plugin. Thanks. :D

AtomicStryker 12-10-2009 17:51

Re: [L4D & L4D2] Incapped Meds munch
 
Version 1.1.1 features slightly different chat prints, so people know they must HOLD DOWN the button to revive.

Ive also tweaked it a bit so it should run on L4D aswell.

Newf 12-11-2009 00:19

Re: [L4D2] Incapped Meds munch
 
Quote:

Originally Posted by Visual77 (Post 1012433)
Nice update, but I had to remove the part were the meds were being dropped at the floor :)

and how did you do this exactly? that's the one thing people complained about lol.

Visual77 12-11-2009 02:14

Re: [L4D & L4D2] Incapped Meds munch
 
Remove this part from InterruptMunch(client) I suppose.

Code:

RemovePlayerItem(client, Meds);
 
 new droppedstuff = CreateEntityByName(medstring);
 new ticktime = RoundToNearest( FloatDiv( GetGameTime() , GetTickInterval() ) ) + 5;
 SetEntProp(droppedstuff, Prop_Data, "m_nNextThinkTick", ticktime);
 DispatchSpawn(droppedstuff);
 ActivateEntity(droppedstuff);
 
 decl Float:position[3], Float:randomvec[3];
 GetClientAbsOrigin(client, position);
 position[2] += 20.0; //lift the dropped med a wee bit higher
 randomvec[0] = GetRandomFloat(0.0, 45.0);
 randomvec[1] = GetRandomFloat(0.0, 45.0);
 randomvec[2] = GetRandomFloat(15.0, 45.0); //toss it a random direction
 
 TeleportEntity(droppedstuff, position, NULL_VECTOR, randomvec);
 
 PrintToChat(client, "\x04Self Reviving was interrupted! You flinched, \x03dropping your meds!");


AtomicStryker 12-11-2009 02:40

Re: [L4D & L4D2] Incapped Meds munch
 
Added cvar to control that, shifted chat notifications a bit so you wont get it while being shreddered or revived.

Newf 12-11-2009 11:38

Re: [L4D & L4D2] Incapped Meds munch
 
Quote:

Originally Posted by AtomicStryker (Post 1013091)
Added cvar to control that, shifted chat notifications a bit so you wont get it while being shreddered or revived.

awesome. thank you!!:mrgreen:

sodalish 12-14-2009 15:27

Re: [L4D & L4D2] Incapped Meds munch
 
Everyone loves this plugin on our server, the one request we had is if you could make one for adrenaline only?

Again great work and keep it up!

Newf 12-21-2009 11:31

Re: [L4D & L4D2] Incapped Meds munch
 
is there any way you could make it so that incapped survivors could pick up pills/adrenaline while incapped??

crawling would have to be enabled of course, which i have on my server anyways.

AtomicStryker 12-21-2009 11:50

Re: [L4D & L4D2] Incapped Meds munch
 
I could make it so, but youd need to be looking DIRECTLY onto the item, which is too fidgety.

I disapprove of crawling in general :)

Newf 12-21-2009 11:59

Re: [L4D & L4D2] Incapped Meds munch
 
Quote:

Originally Posted by AtomicStryker (Post 1025596)
I could make it so, but youd need to be looking DIRECTLY onto the item, which is too fidgety.

I disapprove of crawling in general :)

not everyone likes crawling, so it's understandable :)

you could make it an optional cvar perhaps?

ionxp 01-28-2010 09:15

Re: [L4D & L4D2] Incapped Meds munch
 
this is buggy sometimes...it says you're already being revived and you can't use pills,and there's nobody near me

Tanuki 02-01-2010 13:11

Re: [L4D & L4D2] Incapped Meds munch
 
Very nice idea, really like this one.

help_im_upside_down 03-14-2010 17:16

Re: [L4D & L4D2] Incapped Meds munch
 
Works great for me. Thanks

ne0cha0s 03-14-2010 20:45

Re: [L4D & L4D2] Incapped Meds munch
 
everything works fine for me, and i love the mod, great job. the only problem i have is using this mod in addition to the infected release mod, it sometimes says "get that infected off you" when your down and an infected has already released you. was wondering if there's anything you could do?

Blakeocity 03-15-2010 02:12

Re: [L4D & L4D2] Incapped Meds munch
 
That happens sometimes to me without that plugin on my server.

Pretty rare occurrence but it can be annoying.

Versus gamemode/.

ne0cha0s 03-15-2010 22:15

Re: [L4D & L4D2] Incapped Meds munch
 
any idea how to fix it?

AtomicStryker 03-16-2010 05:21

Re: [L4D & L4D2] Incapped Meds munch
 
Something that isnt covered by the Hooks happens, which affects your userid.

Thats my best guess anyway. And no, there is no easy way to fix it.

satannuts 04-01-2010 20:06

Re: [L4D & L4D2] Incapped Meds munch
 
Nice plugin... getting some errors in my logs from it?
what could be causing no stack trace error?

Code:

L 04/01/2010 - 18:36:31: SourceMod error session started
L 04/01/2010 - 18:36:31: Info (map "c4m5_milltown_escape") (file "errors_20100401.log")
L 04/01/2010 - 18:36:31: [SM] Plugin encountered error 15: Array index is out of bounds
L 04/01/2010 - 18:36:31: [SM] Displaying call stack trace for plugin "l4d_backpack1.0.6.smx":
L 04/01/2010 - 18:36:31: [SM]  [0]  Line 579, l4d_backpack1.0.6.sp::Event_MissionLost()
L 04/01/2010 - 18:43:58: [SM] Native "KillTimer" reported: Invalid timer handle 0 (error 4)
L 04/01/2010 - 18:43:58: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/01/2010 - 18:43:58: [SM]  [0]  Line 210, l4d2_incappedmedsmunch.sp::InterruptMunch()
L 04/01/2010 - 18:43:58: [SM]  [1]  Line 259, l4d2_incappedmedsmunch.sp::Event_PlayerHurt()
L 04/01/2010 - 18:44:01: [SM] Native "KillTimer" reported: Invalid timer handle 0 (error 4)
L 04/01/2010 - 18:44:01: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/01/2010 - 18:44:01: [SM]  [0]  Line 210, l4d2_incappedmedsmunch.sp::InterruptMunch()
L 04/01/2010 - 18:44:01: [SM]  [1]  Line 259, l4d2_incappedmedsmunch.sp::Event_PlayerHurt()
L 04/01/2010 - 18:44:27: [SM] Plugin encountered error 15: Array index is out of bounds
L 04/01/2010 - 18:44:27: [SM] Displaying call stack trace for plugin "l4d_backpack1.0.6.smx":
L 04/01/2010 - 18:44:27: [SM]  [0]  Line 579, l4d_backpack1.0.6.sp::Event_MissionLost()
L 04/01/2010 - 19:01:13: Error log file session closed.
L 04/01/2010 - 19:12:56: SourceMod error session started
L 04/01/2010 - 19:12:56: Info (map "c5m3_cemetery") (file "errors_20100401.log")
L 04/01/2010 - 19:12:56: [DefibFix] Player NOT FOUND
L 04/01/2010 - 19:19:52: Error log file session closed.


AtomicStryker 04-02-2010 05:23

Re: [L4D & L4D2] Incapped Meds munch
 
Timer Handle 0 errors only occur because the Sourcemod devs wont give me a function to check Timer Handle Validity.

Its not dangerous :D

ne0cha0s 04-05-2010 20:32

Re: [L4D & L4D2] Incapped Meds munch
 
i was randomly checking logs and found this:
Code:

L 04/05/2010 - 20:29:27: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/05/2010 - 20:29:27: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/05/2010 - 20:29:27: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()


Newf 04-06-2010 20:50

Re: [L4D & L4D2] Incapped Meds munch
 
Quote:

Originally Posted by ne0cha0s (Post 1140764)
i was randomly checking logs and found this:
Code:

L 04/05/2010 - 20:29:27: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/05/2010 - 20:29:27: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/05/2010 - 20:29:27: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()


i've noticed that on mine as well lately.

ellis 04-11-2010 16:47

Re: [L4D & L4D2] Incapped Meds munch
 
became this errors. whats wrong?

Code:

L 04/10/2010 - 13:09:44: SourceMod error session started
L 04/10/2010 - 13:09:44: Info (map "c4m3_sugarmill_b") (file "errors_20100410.log")
L 04/10/2010 - 13:09:44: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/10/2010 - 13:09:44: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/10/2010 - 13:09:44: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/10/2010 - 13:12:24: Error log file session closed.
L 04/10/2010 - 14:02:34: SourceMod error session started
L 04/10/2010 - 14:02:34: Info (map "c4m2_sugarmill_a") (file "errors_20100410.log")
L 04/10/2010 - 14:02:34: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/10/2010 - 14:02:34: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/10/2010 - 14:02:34: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/10/2010 - 14:08:21: Error log file session closed.
L 04/10/2010 - 17:43:12: SourceMod error session started
L 04/10/2010 - 17:43:12: Info (map "c1m3_mall") (file "errors_20100410.log")
L 04/10/2010 - 17:43:12: [SM] Native "KillTimer" reported: Invalid timer handle 0 (error 4)
L 04/10/2010 - 17:43:12: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/10/2010 - 17:43:12: [SM]  [0]  Line 210, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::InterruptMunch()
L 04/10/2010 - 17:43:12: [SM]  [1]  Line 259, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::Event_PlayerHurt()
L 04/10/2010 - 17:44:47: [SM] Native "ClientCommand" reported: Client 2 is not connected
L 04/10/2010 - 17:44:47: [SM] Displaying call stack trace for plugin "l4d_incapped_grenade.smx":
L 04/10/2010 - 17:44:47: [SM]  [0]  Line 1306, /home/groups/alliedmodders/forums/files/6/2/6/3/63327.attach::RemoveInstructorHint()
L 04/10/2010 - 18:19:52: Error log file session closed.
L 04/10/2010 - 20:33:13: SourceMod error session started
L 04/10/2010 - 20:33:13: Info (map "c3m2_swamp") (file "errors_20100410.log")
L 04/10/2010 - 20:33:13: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/10/2010 - 20:33:13: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/10/2010 - 20:33:13: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/10/2010 - 20:39:51: Error log file session closed.
L 04/10/2010 - 23:03:27: SourceMod error session started
L 04/10/2010 - 23:03:27: Info (map "c1m4_atrium") (file "errors_20100410.log")
L 04/10/2010 - 23:03:27: [SM] Native "SetEntPropFloat" reported: Entity -1 (-1) is invalid
L 04/10/2010 - 23:03:27: [SM] Displaying call stack trace for plugin "l4d_incapped_grenade.smx":
L 04/10/2010 - 23:03:27: [SM]  [0]  Line 298, /home/groups/alliedmodders/forums/files/6/2/6/3/63327.attach::EventReviveBegin()
L 04/10/2010 - 23:04:35: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/10/2010 - 23:04:35: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/10/2010 - 23:04:35: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/10/2010 - 23:09:18: Error log file session closed.
L 04/11/2010 - 11:37:46: SourceMod error session started
L 04/11/2010 - 11:37:46: Info (map "c5m5_bridge") (file "errors_20100411.log")
L 04/11/2010 - 11:37:46: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/11/2010 - 11:37:46: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/11/2010 - 11:37:46: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/11/2010 - 12:03:00: Error log file session closed.
L 04/11/2010 - 12:41:54: SourceMod error session started
L 04/11/2010 - 12:41:54: Info (map "c3m2_swamp") (file "errors_20100411.log")
L 04/11/2010 - 12:41:54: [SM] Native "ClientCommand" reported: Client 10 is not connected
L 04/11/2010 - 12:41:54: [SM] Displaying call stack trace for plugin "l4d_incapped_grenade.smx":
L 04/11/2010 - 12:41:54: [SM]  [0]  Line 1306, /home/groups/alliedmodders/forums/files/6/2/6/3/63327.attach::RemoveInstructorHint()
L 04/11/2010 - 12:43:52: Error log file session closed.
L 04/11/2010 - 13:25:58: SourceMod error session started
L 04/11/2010 - 13:25:58: Info (map "c4m1_milltown_a") (file "errors_20100411.log")
L 04/11/2010 - 13:25:58: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/11/2010 - 13:25:58: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/11/2010 - 13:25:58: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/11/2010 - 13:29:59: Error log file session closed.
L 04/11/2010 - 18:24:08: SourceMod error session started
L 04/11/2010 - 18:24:08: Info (map "c1m2_streets") (file "errors_20100411.log")
L 04/11/2010 - 18:24:08: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/11/2010 - 18:24:08: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/11/2010 - 18:24:08: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/11/2010 - 18:24:08: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/11/2010 - 18:24:08: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/11/2010 - 18:24:08: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/11/2010 - 18:24:09: [SM] Native "RemovePlayerItem" reported: NULL not allowed
L 04/11/2010 - 18:24:09: [SM] Displaying call stack trace for plugin "l4d2_incappedmedsmunch.smx":
L 04/11/2010 - 18:24:09: [SM]  [0]  Line 163, /home/groups/alliedmodders/forums/files/5/2/2/3/3/53839.attach::OnPlayerRunCmd()
L 04/11/2010 - 18:35:32: Error log file session closed.


TacKLER 04-17-2010 04:46

Re: [L4D & L4D2] Incapped Meds munch
 
could you please make it so that meds munching works only when incapped but not when ledge grabbing? using pills to save yourself from ledge just... seems a bit awkward

AtomicStryker 04-17-2010 14:44

Re: [L4D & L4D2] Incapped Meds munch
 
@Tack

Done


@ellis

All but the last error originate from other plugins, but i fixed that error message from showing.

ne0cha0s 04-18-2010 23:04

Re: [L4D & L4D2] Incapped Meds munch
 
Quote:

Originally Posted by AtomicStryker (Post 993920)
1.1.3 - removed self-ledge-save by pills possibility

could you could make a variable for that to turn it on or off? people being able to pick themselves up from the ledge really helped even out the gameplay between the infected and the survivors in my server


All times are GMT -4. The time now is 04:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.