AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Spawn & Movable Machine Gun 1.0.6 (https://forums.alliedmods.net/showthread.php?t=154557)

alexip121093 04-10-2011 08:27

[L4D & L4D2] Spawn & Movable Machine Gun 1.0.6
 
2 Attachment(s)
Highly Recommend USE with Silvers's [L4D & L4D2] Mini Gun Spawner (1.0)
http://forums.alliedmods.net/showthread.php?t=175152


[SIZE="4"][COLOR="Red"]Notice
Now There are l4d2_movablemachinegun (1.0.3) and l4d2_movablemachinegun_sdkhooks(1.0.6)

I will not support the l4d2_movablemachinegun version anymore


About :
It works on both l4d2 + l4d1 (l4d1 not tested)

It allows you to press Keyboard Shift together with Mouse Right Click while pointing to the machine gun to move it
And also spawn the type of mini gun you like

Video : http://www.youtube.com/watch?v=ANxS0bXvCGI
Reminder :
YOU MAY CREATE MACHINE GUNS EVERYMAP USING STRIPPER http://forums.alliedmods.net/showthread.php?t=39439
example code for creating a minigun in l4d2 or l4d1 using stripper
Code:

{
"origin" "1664 564 416"
"updatechildren" "0"
"StartDisabled" "0"
"spawnflags" "0"
"solid" "6"
"SetBodyGroup" "0"
"rendermode" "0"
"renderfx" "0"
"rendercolor" "255 255 255"
"renderamt" "255"
"RandomAnimation" "0"
"pressuredelay" "0"
"PerformanceMode" "0"
"model" "models/w_models/weapons/50cal.mdl"
"MinPitch" "-25"
"MinAnimTime" "5"
"MaxYaw" "65"
"MaxPitch" "50"
"MaxAnimTime" "10"
"glowcolor" "0 0 0"
"fadescale" "1"
"fademindist" "-1"
"ExplodeRadius" "0"
"ExplodeDamage" "0"
"disablereceiveshadows" "0"
"body" "0"
"angles" "0 90 0"
"classname" "prop_minigun"
"hammerid" "593162"
}

example code for creating a l4d1 minigun in l4d2 using stripper
Code:

{
"origin" "1664 564 416"
"updatechildren" "0"
"StartDisabled" "0"
"spawnflags" "0"
"solid" "6"
"SetBodyGroup" "0"
"rendermode" "0"
"renderfx" "0"
"rendercolor" "255 255 255"
"renderamt" "255"
"RandomAnimation" "0"
"pressuredelay" "0"
"PerformanceMode" "0"
"model" "models/w_models/weapons/w_minigun.mdl"
"MinPitch" "-25"
"MinAnimTime" "5"
"MaxYaw" "65"
"MaxPitch" "50"
"MaxAnimTime" "10"
"glowcolor" "0 0 0"
"fadescale" "1"
"fademindist" "-1"
"ExplodeRadius" "0"
"ExplodeDamage" "0"
"disablereceiveshadows" "0"
"body" "0"
"angles" "0 90 0"
"classname" "prop_minigun_l4d1"
"hammerid" "593162"
}

CVAR :
config your cvar @ cfg/sourcemod/l4d2_movablemachinegun.cfg
Code:

l4d2_moveablemachinegun 1.0.6        l4d2_moveablemachinegun version
l4d2_movablemachinegun_block 0    Block The Attack button when moving a minigun  0 = do not block ,1 = block
l4d2_movablemachinegun_speed 0.8  The Walking speed when moving a minigun    1.0 = normal speed , -0.1 = do not modify
l4d2_movablemachinegun_distance 200.0 Block The Deploy of minigun within the range  (0.0 to disable)

Admin Commands:
sm_minigun <type> Create a minigun in front of you 0 is the l4d1 minigun 1 is the l4d2 minigun
sm_removeminigun remove the minigun that you aiming

To Do List:
add speed cvar control the speed moving the gun √
more buttons option ×
color cvar ×

Changelog:
1.0.6-1 fixed cvar flags
1.0.6 added distance cvar 122 views
added autoexec cfg
1.0.5 Added speed cvar to control the walking speed when you holding the machine gun 44 views
1.0.4 Added a sdkhooks version requires sdkhooks 2.0:)
-added a chat notice how to move the machine gun
(notice appears when a player use a minigun)
-added a cvar to block the attack button when moving a minigun
-changed onplayerruncmd to postthink
l4d2_movablemachinegun_sdkhooks start
---------------------------------------------
l4d2_movablemachinegun ends
1.0.3 fixed player can move a minigun that is using by other players
1.0.2 added the sm_minigun <type> command and sm_removeminigun
1.0.1 fixed infected can move it too and prevent player leave the game will lose a machinegun
1.0 First Release

Credits
Slivers For The parent code
antihacker for the minigun creation code
disawar1's edition(carry the minigun on your back) : http://forums.alliedmods.net/showpos...9&postcount=31

Undertaker1 04-10-2011 08:32

Re: [L4D(2)] Movable Machine Gun
 
Nice plug in

alexip121093 04-11-2011 04:59

Re: [L4D(2)] Movable Machine Gun
 
updated to 1.0.2

paul92 04-11-2011 15:01

Re: [L4D(2)] Spawn & Movable Machine Gun
 
Excuse me alexip, i didn't understand why i should use "stripper".
What if i don't use it? Can i anyway spawn and move all the 2 kind of machine gun with this plugin? I'm using left 4 dead 2.

alexip121093 04-11-2011 19:08

Re: [L4D(2)] Spawn & Movable Machine Gun
 
I mean , if you use stripper , you can create minigun everymap automatically when round start

Just add the code to the stripper map config file. But you need to get the location you want first.

If you do not use it is ok. admin can use the command to spawn it and it is movable

alexip121093 04-12-2011 05:38

Re: [L4D(2)] Spawn & Movable Machine Gun
 
Please update to 1.0.3 , this update fix the biggest problem

paul92 04-12-2011 10:16

Re: [L4D(2)] Spawn & Movable Machine Gun
 
Ehi, alexip, it doesn't work!

If i write sm_minigun 1 or 0 it tells me:


L 04/12/2011 - 16:16:28: [SM] Native "GetClientAbsOrigin" reported: Client index 0 is invalid
L 04/12/2011 - 16:16:28: [SM] Displaying call stack trace for plugin "l4d2_movablemachinegun.smx":
L 04/12/2011 - 16:16:28: [SM] [0] Line 160, /home/groups/alliedmodders/forums/files/6/4/7/7/3/84652.attach::CreateMiniGun()
L 04/12/2011 - 16:16:28: [SM] [1] Line 68, /home/groups/alliedmodders/forums/files/6/4/7/7/3/84652.attach::SpawnMini()


Can you fix it?

alexip121093 04-12-2011 10:35

Re: [L4D(2)] Spawn & Movable Machine Gun
 
It can't be created using console . It can only be created by a admin player in game

paul92 04-12-2011 12:23

Re: [L4D(2)] Spawn & Movable Machine Gun
 
But I AM the admin of my own server! XD






Edit: Nevermind, i solved the problem! :)

JoBarfCreepy 04-15-2011 07:54

Re: [L4D(2)] Spawn & Movable Machine Gun
 
DAMMIT! I wasted 6 months trying to make a L4D1 minigun in L4D2 , finaly completed it before christmas... I wanted to upload it, but now there is no need to. Anyways, I will download this too as it is way better than mine :/
Still, Thanks. I always wanted to move my machineguns.


All times are GMT -4. The time now is 19:30.

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