Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Mini Gun Spawner (1.9) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-10-2014 , 11:26   Re: [L4D & L4D2] Mini Gun Spawner (1.5) [21-Jul-2013]
Reply With Quote #21

Nothing changed, this seems to be an issue with the forum.
__________________
Silvers is offline
Overwatch_Soldier
New Member
Join Date: Aug 2014
Location: Indonesia
Old 08-22-2014 , 19:30   Re: [L4D & L4D2] Mini Gun Spawner (1.5) [21-Jul-2013]
Reply With Quote #22

Hello Silvers.
Why when I try to spawn the Machinegun with command "sm_mg 0 or 1" there's a message said, I must on a dedicated server to use that command. Can you remove those code from your plugin to allow use on "Non Dedicated Server"?
Overwatch_Soldier is offline
crazy89
New Member
Join Date: Aug 2014
Old 08-30-2014 , 20:26   Re: [L4D & L4D2] Mini Gun Spawner (1.2) [14-Jan-2011]
Reply With Quote #23

I all but 0.50 does not work put 1 or 0 appears only 1 machine gun how to fix it?l4d_mini_gun_random- I did not then .... sorry for my english
crazy89 is offline
WhataMack
Junior Member
Join Date: Jul 2012
Old 01-03-2018 , 08:28   Re: [L4D & L4D2] Mini Gun Spawner (1.5) [21-Jul-2013]
Reply With Quote #24

Just as an fyi, I've tried using the spawning plugin for more than 48 machine guns across all the standard and custom maps on my server, but ran out of available slots. So, I changed the maximum number in the plugin's source code from 48 to 96, then compiled the source and that works fine. Also, it turns out I hadn't changed the "l4d_mini_gun_random" setting in "cfg > sourcemod > l4d_mini_gun.cfg" to "-1" to ensure all the mini-gun locations I'd saved will spawn where they were saved.

So, with a small amount of work I was able to customize this really nice plugin to fit what I wanted it to do.

Thanks once again to Silvers for providing a great plugin. My server is full of your plugins and it's become an excellent, fun environment for L4D2.
WhataMack is offline
Mister_Game_Over
Junior Member
Join Date: May 2017
Location: Russia
Old 02-19-2018 , 16:01   Re: [L4D & L4D2] Mini Gun Spawner (1.5) [21-Jul-2013]
Reply With Quote #25

L4D - 50cal Minigun

PHP Code:
L4D2 

entity 
CreateEntityByName("prop_minigun");
SetEntityModel(entityMODEL_50CAL);

entity CreateEntityByName ("prop_minigun_l4d1");
SetEntityModel(entityMODEL_MINIGUN);

L4D

entity 
CreateEntityByName("prop_mounted_machine_gun");
SetEntityModel(entityMODEL_50CAL);

entity CreateEntityByName ("prop_minigun");
SetEntityModel(entityMODEL_MINIGUN); 
Photo
Attached Files
File Type: zip l4d_minigun.zip (4.16 MB, 208 views)

Last edited by Mister_Game_Over; 02-19-2018 at 17:10.
Mister_Game_Over is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-24-2018 , 07:46   Re: [L4D & L4D2] Mini Gun Spawner (1.5) [21-Jul-2013]
Reply With Quote #26

I know some are old messages. Replying for future reference to whoever.



Quote:
Originally Posted by Overwatch_Soldier View Post
Hello Silvers.
Why when I try to spawn the Machinegun with command "sm_mg 0 or 1" there's a message said, I must on a dedicated server to use that command. Can you remove those code from your plugin to allow use on "Non Dedicated Server"?
This is something I do with all my plugins, when Local Server your client index is 0 which is the same as a Dedicated Servers index. So it's blocked to prevent bugs when a dedicated server runs a command intended for clients. Sure could probably do IsDedicatedServer() check etc. But there are probably other times and plugins which may bug because 0 is both server and client, and probably need a distinction. All my stuff was created on Dedicated Server, so that's pretty much all I support.





Quote:
Originally Posted by crazy89 View Post
I all but 0.50 does not work put 1 or 0 appears only 1 machine gun how to fix it?l4d_mini_gun_random- I did not then .... sorry for my english
"_random" cvars in my plugins are Integers, not Floats. So it will round to the nearest whole number. Meaning you get only 0, 1, or 2. Not 1.5.





Quote:
Originally Posted by WhataMack View Post
So, I changed the maximum number in the plugin's source code from 48 to 96, then compiled the source and that works fine.
The spawn limits are mostly because certain maps will have many less entities available, and various plugins will decrease the free slots.





Quote:
Originally Posted by Mister_Game_Over View Post
L4D - 50cal Minigun
Thanks but I don't understand why. The model seems identical to what's already in L4D1 and accessible to this plugin. What am I missing?
__________________
Silvers is offline
Mister_Game_Over
Junior Member
Join Date: May 2017
Location: Russia
Old 04-12-2018 , 18:44   Re: [L4D & L4D2] Mini Gun Spawner (1.5) [21-Jul-2013]
Reply With Quote #27

/////////////////////////////////////

new

g_bLeft4Dead & g_bLeft4Dead2

/////////////////////////////////////
PHP Code:
                (L4D)                                                                           (L4D2)

entity CreateEntityByName("prop_mounted_machine_gun");  VS   entity CreateEntityByName("prop_minigun");
SetEntityModel(entityMODEL_50CAL);                                      SetEntityModel(entityMODEL_50CAL);
          

entity CreateEntityByName ("prop_minigun");       VS               entity CreateEntityByName ("prop_minigun_l4d1");
SetEntityModel(entityMODEL_MINIGUN);                                 SetEntityModel(entityMODEL_MINIGUN);
           

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

g_bLeft4Dead

entity 
CreateEntityByName("prop_mounted_machine_gun"); // type = 0
SetEntityModel(entityMODEL_50CAL);

entity CreateEntityByName ("prop_minigun");                    // type = 1
SetEntityModel(entityMODEL_MINIGUN);       

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

g_bLeft4Dead2

entity 
CreateEntityByName("prop_minigun");               // type = 0
SetEntityModel(entityMODEL_50CAL);            

entity CreateEntityByName ("prop_minigun_l4d1");       // type = 1
SetEntityModel(entityMODEL_MINIGUN); 

Last edited by Mister_Game_Over; 04-12-2018 at 19:04.
Mister_Game_Over is offline
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 09-10-2022 , 15:00   Re: [L4D & L4D2] Mini Gun Spawner (1.8) [10-May-2020]
Reply With Quote #28

Now showing this error when compiling using the sourcemod.net compiler.

Code:
phpcsReqM.sp(279) : warning 242: function "tmrStart" should return an explicit value
Dominatez is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-10-2022 , 16:26   Re: [L4D & L4D2] Mini Gun Spawner (1.8) [10-May-2020]
Reply With Quote #29

Quote:
Originally Posted by Dominatez View Post
Now showing this error when compiling using the sourcemod.net compiler.

Code:
phpcsReqM.sp(279) : warning 242: function "tmrStart" should return an explicit value
It's just a warning.
__________________
Silvers is offline
Lebo
New Member
Join Date: Jan 2022
Old 08-07-2023 , 14:03   Re: [L4D & L4D2] Mini Gun Spawner (1.9) [11-Dec-2022]
Reply With Quote #30

does anybody have the smx?
Lebo 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 19:08.


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