Raised This Month: $51 Target: $400
 12% 

[L4D2] Weapon owner [v1.0.0 | 06-November-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
kahdeg
Junior Member
Join Date: Oct 2021
Plugin ID:
7846
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Locking dropped weapon.
    Old 11-06-2021 , 12:06   [L4D2] Weapon owner [v1.0.0 | 06-November-2021]
    Reply With Quote #1

    Description

    This plugin make it so that other survivor can't pick up dropped weapon unless that weapon is not owned (already picked up once).

    Features

    Allow configuring locking primary and secondary weapon separately.
    Allow weapon ownership timeout after a while.
    By default, player have to opt-in to use this weapon lock function by running "sm_wp_toggle_lock" once.

    Cvars

    A configuration file named "l4d2_weaponowner.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // 1=lock Primary weapon On. 0=ignore Primary weapon
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    weapon_owner_lock_primary_on "1"

    // 1=lock Secondary weapon On. 0=ignore Secondary weapon
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    weapon_owner_lock_secondary_on "1"

    // 1=enable Weapon Ownership timeout. 0=disable Weapon Ownership timeout
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    weapon_owner_lock_timeout "0"

    // Duration for weapon claim.
    // -
    // Default: "30"
    // Minimum: "5.000000"
    // Maximum: "9999.000000"
    weapon_owner_lock_timeout_duration "30"

    // Enable plugin. 1=Plugin On. 0=Plugin Off
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    weapon_owner_on "1" 
    Client Commands
    Code:
    - "sm_wp_toggle_lock" 		Toggle for whether the client want to lock their dropped weapon or not.
    - "sm_wp_unlock" 		Unlock all of client's currently locked weapon.
    - "sm_wp_unlock_primary" 	Unlock client's currently claimed primary weapon.
    - "sm_wp_unlock_secondary" 	Unlock client's currently claimed secondary weapon.
    Changelog
    Code:
    v1.0.0 06-Nov-2021
    - Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_weapon_owner.sp - 288 views - 14.8 KB)

    Last edited by kahdeg; 11-07-2021 at 02:57.
    kahdeg is offline
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 11-07-2021 , 01:39   Re: [L4D2] Weapon owner [v1.0.0 | 06-November-2021]
    Reply With Quote #2

    Interesting plugin Will testing this in my server later tonight.

    Great job kahdeg!
    __________________

    Looking for some fun!
    thewintersoldier97 is offline
    kevinracer
    Member
    Join Date: Dec 2009
    Old 11-08-2021 , 05:11   Re: [L4D2] Weapon owner [v1.0.0 | 06-November-2021]
    Reply With Quote #3

    Một ý tưởng tuyệt vời, cám ơn bạn rất nhiều cắm vào này, tôi rất hạnh phúc cùng những người bạn của mình!
    kevinracer 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 02:44.


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