Raised This Month: $95 Target: $400
 23% 

[L4D & L4D2] Intelligent Machine Gun


Post New Thread Reply   
 
Thread Tools Display Modes
FatalOE71
Member
Join Date: Jun 2018
Old 07-27-2018 , 02:02   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #101

Can anyone fix the array out of bounds on line 1021? It is filling up the errors logs.

[1] Line 1021, C:\Users\user\Desktop\Left 4 Dead 2 Server Plugins\sourcemod-1.8.0-git6048-windows\addons\sourcemod\scripting\l4d_machin e.sp::OnTakeDamagePost
L 07/26/2018 - 200:14: [SM] Exception reported: Array index is out of bounds
L 07/26/2018 - 200:14: [SM] Blaming: l4d_machine.smx
FatalOE71 is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 07-27-2018 , 09:50   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #102

Try this I get no errors linux server.
Attached Files
File Type: smx l4d_machine.smx (27.5 KB, 71 views)
File Type: sp Get Plugin or Get Source (l4d_machine.sp - 231 views - 44.2 KB)

Last edited by ricksfishin; 09-06-2018 at 15:42.
ricksfishin is offline
FatalOE71
Member
Join Date: Jun 2018
Old 07-28-2018 , 16:05   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #103

Quote:
Originally Posted by ricksfishin View Post
Try this I get no errors linux server.
Thanks will test it out on my server and see if it works, running a windows server here.

Last edited by FatalOE71; 07-28-2018 at 16:06.
FatalOE71 is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-05-2018 , 08:45   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #104

When I remove the machine guns, I cannt respawn them afterwards. Any way to solve that?
Lets say I have set the plugin to have a limit of 4. I spawn all 4. Then I remove them with !removemachine.

But then it wont allow me to respawn them.
wendigo is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 09-06-2018 , 01:28   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #105

If down loaded from post 102 Re download Fixed some spelling. Add machines, remove machines, Then add machines again works fine for me.

Last edited by ricksfishin; 09-06-2018 at 01:28.
ricksfishin is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-06-2018 , 15:24   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #106

Quote:
Originally Posted by ricksfishin View Post
If down loaded from post 102 Re download Fixed some spelling. Add machines, remove machines, Then add machines again works fine for me.
It works.
I got a little embarrassed question here:
How do I get the plugin, to generate the .cfg folder so I can customize it?
I have literally forgot as of this moment. Plugin works fine now. Can both delete and respawn.

But I have no .cfg in my server files of this plugin here anymore.

Last edited by wendigo; 09-06-2018 at 15:24.
wendigo is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 09-06-2018 , 15:37   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #107

Sorry forgot to change back to true. in sp change false to true. and recompile plugin.

AutoExecConfig(true, "l4d_machine");

Are re download.

Last edited by ricksfishin; 09-06-2018 at 15:44.
ricksfishin is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-06-2018 , 15:52   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #108

Quote:
Originally Posted by ricksfishin View Post
Sorry forgot to change back to true. in sp change false to true. and recompile plugin.

AutoExecConfig(true, "l4d_machine");

Are re download.

// Default: "3"
l4d_machine_damage_of_tank "3"

// bullet damage
// -
// Default: "1"
l4d_machine_damage_to_infected "1"

Is there a way to know how much dmg that is per bullet?
I think the version on mainpage, had a different layout.
Default damage overall was 25 bullet damage. Just 1 value for all dmg.

EDIT: Found these here from original plugin at page 1:
l4d_machine_damage_to_infected=CreateConVar(" l4d_machine_damage_to_infected", "25.0", "bullet damage", FCVAR_PLUGIN);

//l4d_machine_damage_of_tank=CreateConVar("l4d_ machine_damage_of_tank", "10.0", "bullet damage for tank", FCVAR_PLUGIN);

So how does that compare to your edited values? 3 = 30? 1 = 10?

Last edited by wendigo; 09-06-2018 at 15:58.
wendigo is offline
ricksfishin
Senior Member
Join Date: Oct 2017
Old 09-06-2018 , 16:01   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #109

You can change those numbers to whatever you want. I was testing 10.0 tank,25.0 infected was killing tank and infected to quick with 3 machines.

Last edited by ricksfishin; 09-06-2018 at 16:05.
ricksfishin is offline
wendigo
Senior Member
Join Date: Nov 2012
Location: Denmark
Old 09-06-2018 , 16:04   Re: [L4D & L4D2] Intelligent Machine Gun
Reply With Quote #110

l4d_machine_damage_to_infected "1"

So this is 1 dmg per bullet?
And it covers all enemies, with the tank being excluded?

Last edited by wendigo; 09-06-2018 at 16:05.
wendigo is offline
Reply


Thread Tools
Display Modes

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 14:02.


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