Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Spawn & Movable Machine Gun 1.0.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Plugin ID:
2307
Plugin Version:
1.0.6
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    281 
    Plugin Description:
    It allows you to press Keyboard Shift together with Mouse Right Click and point to the machine gun to move a machine gun and create 1
    Old 04-10-2011 , 09:27   [L4D & L4D2] Spawn & Movable Machine Gun 1.0.6
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_movablemachinegun.sp - 5504 views - 9.4 KB)
    File Type: sp Get Plugin or Get Source (l4d2_movablemachinegun_sdkhooks.sp - 3709 views - 13.6 KB)
    __________________

    Last edited by asherkin; 05-15-2020 at 12:44.
    alexip121093 is offline
    Send a message via MSN to alexip121093
    Undertaker1
    New Member
    Join Date: Apr 2010
    Old 04-10-2011 , 09:32   Re: [L4D(2)] Movable Machine Gun
    Reply With Quote #2

    Nice plug in
    Undertaker1 is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-11-2011 , 05:59   Re: [L4D(2)] Movable Machine Gun
    Reply With Quote #3

    updated to 1.0.2
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 04-11-2011 , 16:01   Re: [L4D(2)] Spawn & Movable Machine Gun
    Reply With Quote #4

    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.
    paul92 is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-11-2011 , 20:08   Re: [L4D(2)] Spawn & Movable Machine Gun
    Reply With Quote #5

    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
    __________________

    Last edited by alexip121093; 04-11-2011 at 20:25.
    alexip121093 is offline
    Send a message via MSN to alexip121093
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-12-2011 , 06:38   Re: [L4D(2)] Spawn & Movable Machine Gun
    Reply With Quote #6

    Please update to 1.0.3 , this update fix the biggest problem
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 04-12-2011 , 11:16   Re: [L4D(2)] Spawn & Movable Machine Gun
    Reply With Quote #7

    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?
    paul92 is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 04-12-2011 , 11:35   Re: [L4D(2)] Spawn & Movable Machine Gun
    Reply With Quote #8

    It can't be created using console . It can only be created by a admin player in game
    __________________
    alexip121093 is offline
    Send a message via MSN to alexip121093
    paul92
    Senior Member
    Join Date: Sep 2010
    Old 04-12-2011 , 13:23   Re: [L4D(2)] Spawn & Movable Machine Gun
    Reply With Quote #9

    But I AM the admin of my own server! XD






    Edit: Nevermind, i solved the problem!

    Last edited by paul92; 04-12-2011 at 13:40.
    paul92 is offline
    JoBarfCreepy
    Member
    Join Date: Feb 2011
    Location: Denmark
    Old 04-15-2011 , 08:54   Re: [L4D(2)] Spawn & Movable Machine Gun
    Reply With Quote #10

    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.
    JoBarfCreepy 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 13:32.


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