Raised This Month: $51 Target: $400
 12% 

[L4D & L4D2] Struggle


Post New Thread Reply   
 
Thread Tools Display Modes
Boxmanbr
Junior Member
Join Date: Feb 2012
Old 02-14-2012 , 23:06   Re: [L4D & L4D2] Struggle
Reply With Quote #21

Well, I would like to see this plugin working for bots, with configurable settings, using this method (Written in LUA because I'm not pro at sourcemod's language yet):
Code:
function onTick()
     for i = 1, GetMaxPlayers() do
          if player[i].isabot == true and player[i].strugglebarpercent < 100 then
               player[i].strugglebarpercent += math.random(GetConVar(l4d2_struggle_min_add_amount__bots), GetConVar(l4d2_struggle_max_add_amount__bots))
          else
               Revive(i)
          end
     end
end
game.tick:connect(onTick)
Boxmanbr is offline
panxiaohai
Senior Member
Join Date: Mar 2010
Old 02-24-2012 , 10:59   Re: [L4D & L4D2] Struggle
Reply With Quote #22

Quote:
Originally Posted by knfes View Post
Unfortunately, this crashes once the struggle is done for me as well.
I think the crashing is caused by the SDKCall, I can fix this by using another method.
panxiaohai is offline
bubbabyte
Member
Join Date: Jun 2010
Old 03-04-2012 , 17:33   Re: [L4D & L4D2] Struggle
Reply With Quote #23

Is there any way to make this a one time use thing? Kind of like the knife was in l4d1, where you could kill an infected the pounced you one time per round?
bubbabyte is offline
SyluxLockjaw100
Senior Member
Join Date: Jul 2010
Location: Novaya Russia
Old 03-09-2012 , 06:02   Re: [L4D & L4D2] Struggle
Reply With Quote #24

Quote:
Originally Posted by bubbabyte View Post
Is there any way to make this a one time use thing? Kind of like the knife was in l4d1, where you could kill an infected the pounced you one time per round?
Use his' self help plugin,almost similar to the beta L4D1 knife

http://forums.alliedmods.net/showthread.php?p=1207285
SyluxLockjaw100 is offline
bubbabyte
Member
Join Date: Jun 2010
Old 03-09-2012 , 13:10   Re: [L4D & L4D2] Struggle
Reply With Quote #25

Quote:
Originally Posted by SyluxLockjaw100 View Post
Use his' self help plugin,almost similar to the beta L4D1 knife

http://forums.alliedmods.net/showthread.php?p=1207285
I do use it already actually, but i was under the impression that it wasn't a ONE time thing, which would render it useless on my server cause you start with meds, and i have loot drops.
bubbabyte is offline
Chronic1
SourceMod Donor
Join Date: Jun 2011
Old 03-14-2012 , 16:47   Re: [L4D & L4D2] Struggle
Reply With Quote #26

hey panx, see if you can add a cvar to adjust how many times you can do this per round.
__________________
Chronic1 is offline
Sapiens
New Member
Join Date: Mar 2012
Old 03-16-2012 , 18:25   Re: [L4D & L4D2] Struggle
Reply With Quote #27

I've been using this plugin in singleplayer Left 4 Dead 1 and it works great and has given a lot of life into my game, so thank you for this. I do have one problem with it, though: when a large horde spawns along with a big environment like outside in the city, my framerate dips a little bit. It's still playable, but it's enough to render the struggle ability useless--the plugin just doesn't register the struggling I'm doing, I would imagine because it only counts it during the actual frames appearing on my screen. Is there any way to fix or work around this issue? Thanks again.
Sapiens is offline
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 05-30-2012 , 01:28   Re: [L4D & L4D2] Struggle
Reply With Quote #28

Quote:
Originally Posted by panxiaohai View Post
I think the crashing is caused by the SDKCall, I can fix this by using another method.
The plugin does work for saving yourself from a ledge or getting up while incapped. But what seem to crash it for me is trying to struggle from a Smoker or Hunter. Trying to free yourself from a Smoker's tongue crashes the server everytime.

I hope you can get this working as it pretty neat
The 5th Survivor is offline
Axin107
Junior Member
Join Date: Jul 2013
Old 07-05-2013 , 17:21   Re: [L4D & L4D2] Struggle
Reply With Quote #29

I have a big problem with the plugin ever since the update for the LINUX severs was made. When a infected gets a survivor pinned and i got out struggling, the game crashes immediately. It began to crash on me constantly it never did this before any solution?

Probably needs a update now.

Last edited by Axin107; 07-05-2013 at 17:28.
Axin107 is offline
sos crazy89
Member
Join Date: May 2015
Location: Russia
Old 09-29-2015 , 10:29   Re: [L4D & L4D2] Struggle
Reply With Quote #30

works for me well for Left 4 dead 2
Attached Files
File Type: sp Get Plugin or Get Source (struggle_l4d.sp - 471 views - 24.0 KB)
__________________

Last edited by sos crazy89; 09-29-2015 at 19:10.
sos crazy89 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:45.


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