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

[CS:GO] Spawn with Melee Weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
6363
Plugin Version:
2.2
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Force players to spawn different melee weapons that exists in CS:GO like fists, axe, hammer and spanner.
    Old 12-12-2018 , 20:11   [CS:GO] Spawn with Melee Weapons
    Reply With Quote #1

    Description:

    Force players to spawn different melee weapons that exists in CS:GO like fists, axe, hammer and spanner.


    Cvars:
    Configure the cvars in the file generated on the first load in cfg/sourcemod/csgo_melee_weapons.cfg
    Code:
    // ConVars for plugin "csgo_meleeweapons.smx"
    
    
    // Give axe on spawn? 1 = yes, 0 = no.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_csgomeleeweapons_axe "0"
    
    // Block right click? 1 = yes, 0 = no.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_csgomeleeweapons_blockattack2 "1"
    
    // Give fists? 1 = yes, 0 = no.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_csgomeleeweapons_fists "1"
    
    // Give hammer on spawn? 1 = yes, 0 = no.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_csgomeleeweapons_hammer "0"
    
    // Give knife? 1 = yes, 0 = no.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_csgomeleeweapons_knife "1"
    
    // Give spanner on spawn? 1 = yes, 0 = no.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    sm_csgomeleeweapons_spanner "0"
    
    // Apply only to a team. 2 = terrorist, 3 = counter-terrorist, 4 = both.
    // -
    // Default: "4"
    // Minimum: "0.000000"
    // Maximum: "4.000000"
    sm_csgomeleeweapons_team "4"
    
    // Time in seconds after spawn to give melee weapons.
    // -
    // Default: "1.6"
    // Minimum: "0.000000"
    sm_csgomeleeweapons_timer "1.6"

    Todo list:

    -Can change the damage of these melee weapons.
    -Can pick up from the ground if you dont disable the attack2 button.


    Download:

    Main repository
    Direct download
    Code changes
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 12-23-2018 at 18:55.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Mikado
    Senior Member
    Join Date: Nov 2012
    Location: don't know where :/
    Old 12-12-2018 , 20:23   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #2

    Cool plugin, thank's for release.
    But can you add a cvar to control if the play spawn with fist only or fist + knife ( he can switch between both as DZone )
    Mikado is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 12-12-2018 , 20:35   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #3

    Quote:
    Originally Posted by Mikado View Post
    Cool plugin, thank's for release.
    But can you add a cvar to control if the play spawn with fist only or fist + knife ( he can switch between both as DZone )
    Done!

    Version 1.1

    -Added cvar to control team and for allow fists+knife.
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    RealEdan
    Member
    Join Date: Dec 2016
    Location: United States
    Old 12-12-2018 , 22:01   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #4

    nice work franug
    __________________
    RealEdan is offline
    asdfxD
    Veteran Member
    Join Date: Apr 2011
    Old 12-12-2018 , 22:17   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #5

    Can you make plugin "fists round only" would be nice!
    asdfxD is offline
    snoopy174
    Member
    Join Date: May 2016
    Old 12-13-2018 , 00:54   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #6

    how can this be corrected?
    I use this extension fpvm_interface.smx
    Attached Images
    File Type: jpg 20181213105056_1.jpg (58.5 KB, 769 views)

    Last edited by snoopy174; 12-13-2018 at 00:56.
    snoopy174 is offline
    Send a message via Skype™ to snoopy174
    vegeta1241
    AlliedModders Donor
    Join Date: Apr 2017
    Location: Switzerland
    Old 12-13-2018 , 08:59   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #7

    Sometimes i Have many hands logos when i spawn 2 or 3 xD why i can fix this ?

    SAME OF 6# POST https://forums.alliedmods.net/showpo...24&postcount=6
    __________________
    IDEAS-GAMING.COM SERVERS ON CSGO :

    - HIDE AND SEEK - SUPERHEROES
    - BUNNY HOP
    - KZ / CLIMB

    ---------------------------------------------------------------------
    My steam link
    Donate !

    Last edited by vegeta1241; 12-13-2018 at 09:00.
    vegeta1241 is offline
    Mikado
    Senior Member
    Join Date: Nov 2012
    Location: don't know where :/
    Old 12-13-2018 , 10:12   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #8

    There is a bug, if you puch someone with right click, he drop his guns auto enemy & teammate.
    Mikado is offline
    wolvez04
    Senior Member
    Join Date: Feb 2016
    Location: Andora
    Old 12-13-2018 , 10:56   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #9

    Fists are stacking if you survive the round, so you eventually have lots and it bugs
    __________________
    Hiring developers of all sorts for small or big jobs.
    Paying nicely. Just PM for any available jobs.

    wolvez04 is offline
    Lannister
    Veteran Member
    Join Date: Apr 2015
    Old 12-13-2018 , 11:52   Re: [CS:GO] Force Fists On Spawn
    Reply With Quote #10

    I wonder Fran if it's possible to disable that thing from the right click that removes the weapon from a teammate and an enemy? or atleast make it enemy only?.

    Keep up the good work!
    Lannister 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 19:09.


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