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

[INS] Drop Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author
woklex
Member
Join Date: Sep 2012
Plugin ID:
5054
Plugin Version:
1.0.05
Plugin Category:
Gameplay
Plugin Game:
Insurgency (2014)
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Drop Weapon plugin for Insurgency
    Old 02-26-2016 , 21:28   [INS] Drop Weapon
    Reply With Quote #1

    When shot in the arm start dropping weapons to the hands. The screen will be a warning "Wounded to the arm! You lost your weapon!".
    Attached Files
    File Type: sp Get Plugin or Get Source (dropweapon.sp - 1135 views - 2.1 KB)

    Last edited by woklex; 02-26-2016 at 21:35.
    woklex is offline
    brsobral
    Junior Member
    Join Date: Feb 2016
    Old 03-07-2016 , 17:49   Re: [INS] Drop Weapon
    Reply With Quote #2

    NICE PLUGIN!
    how configure sensivity to drop? and the message displayed?
    I have changed the phrase on .sp file but it not work. how change the message when the gun is dropped?

    Last edited by brsobral; 03-07-2016 at 17:54.
    brsobral is offline
    woklex
    Member
    Join Date: Sep 2012
    Old 03-07-2016 , 21:04   Re: [INS] Drop Weapon
    Reply With Quote #3

    Hello!

    Config sensitive to drop:
    if ((((hitgroup == 0) && (damage > 70)) && (health >0)) || (((hitgroup == 4) || (hitgroup == 5)) && (health >0)))
    hitgroup 0 - this damage from the explosions and falls from height
    hitgroup 4 and hitgroup 5 - this hands
    damage > 70 - If damage is greater than 70 in hitgroup0 or hitgroup 4 or hitgroup 5, there will be loss of weapons

    Change message:
    -PrintHintText(client, "Wounded to the arm! You lost your weapon!")
    +PrintHintText(client, "LOST WEAPON!!!!")

    Sorry for bad english, hope you understand me

    Last edited by woklex; 03-07-2016 at 21:06.
    woklex is offline
    brsobral
    Junior Member
    Join Date: Feb 2016
    Old 03-08-2016 , 10:21   Re: [INS] Drop Weapon
    Reply With Quote #4

    OK, thanks. I'll try tonight. But I tried to test the weapon drop with shot in the friend arm and he did not drop the gun. Why?
    I have only seen drop impacting grenades.
    brsobral is offline
    brsobral
    Junior Member
    Join Date: Feb 2016
    Old 03-08-2016 , 17:20   Re: [INS] Drop Weapon
    Reply With Quote #5

    I change these values on dropweapon.sp but it not work.
    The messages and damage sensivity is like the original yet. How to fix this?

    Last edited by brsobral; 03-08-2016 at 17:33.
    brsobral is offline
    woklex
    Member
    Join Date: Sep 2012
    Old 03-09-2016 , 05:49   Re: [INS] Drop Weapon
    Reply With Quote #6

    Quote:
    Originally Posted by brsobral View Post
    OK, thanks. I'll try tonight. But I tried to test the weapon drop with shot in the friend arm and he did not drop the gun. Why?
    I have only seen drop impacting grenades.
    Perhaps you shoot in a safe area? Or it can disable friendly fire?
    woklex is offline
    woklex
    Member
    Join Date: Sep 2012
    Old 03-09-2016 , 06:27   Re: [INS] Drop Weapon
    Reply With Quote #7

    Quote:
    Originally Posted by brsobral View Post
    I change these values on dropweapon.sp but it not work.
    The messages and damage sensivity is like the original yet. How to fix this?

    You have changed the line "Wounded to the arm! You lost your weapon!"? You have compiled a new plugin? Restart the server?
    woklex is offline
    brsobral
    Junior Member
    Join Date: Feb 2016
    Old 03-09-2016 , 07:53   Re: [INS] Drop Weapon
    Reply With Quote #8

    Problem is solved. I did not have compiled after the changes.
    Now is working fine. I did not know complilatiin was necessary. Thank you!
    brsobral is offline
    KALASH NICOLE
    Member
    Join Date: Feb 2016
    Old 06-29-2017 , 04:00   Re: [INS] Drop Weapon
    Reply With Quote #9

    hi. i'm having issue to make this plugin working.

    i'm using the latest stable sourcemod version for linux server (1.8.0 git6014)
    the dropweapon plugin is correctly loaded.

    but the player never drop his weapon. and i suspect this plugin to make server crash.


    is there a change in INS or in SM conflicting with this plugin ?


    --------------------
    update


    The MetaMod/SourceMod versions i was using on my server was conflicting with a lot of my plugins.


    I fixed the problem by installing the latest MM/SM dev build versions.

    Last edited by KALASH NICOLE; 07-01-2017 at 14:46.
    KALASH NICOLE is offline
    ronaldoz1988
    New Member
    Join Date: Nov 2017
    Old 11-09-2017 , 07:48   Re: [INS] Drop Weapon
    Reply With Quote #10

    How can I add new weapons and pistols to the script?
    ronaldoz1988 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 07:04.


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