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

[ZR] Kill Clip


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Plugin ID:
3884
Plugin Version:
1.0.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    (CS:S) +Ammo on Zombie Kill
    Old 09-05-2013 , 16:55   [ZR] Kill Clip
    Reply With Quote #1

    Description:
    • A request by LaSt LeGenD, which can be found here.
    • Fairly simple... It lets the attacker recover x ammo (either clip, reserve, or both) after killing a zombie. A CS:GO version would be possible, but I'm a tad too lazy to find the offsets for the weapons
    ConVars:
    • zr_killclip_enabled: Enables/disables all features of the plugin. (0 = Disabled, 1 = Enabled)
    • zr_killclip_refill_clip: Amount of ammo to refill the primary clip for each kill. (0 = Disabled)
    • zr_killclip_refill_reserve: Amount of ammo to refill the reserve ammo for each kill. (0 = Disabled)
    Credits:
    Disclaimer: Some of the methods uses are not ideal and should be written differently, however, I was more concerned with writing the request as quickly as possible yet still retaining functionality. In it's current state, it probably can't be approved, as there are older methods used that shouldn't be. While it functions as requested, it can certainly be written better (and will be, once time permits), but until then, laugh at it .
    Attached Files
    File Type: sp Get Plugin or Get Source (zr_killclip.sp - 471 views - 4.1 KB)
    File Type: smx zr_killclip.smx (9.7 KB, 312 views)
    __________________

    Last edited by thetwistedpanda; 09-06-2013 at 00:04.
    thetwistedpanda is offline
    LaSt LeGenD
    Junior Member
    Join Date: Feb 2013
    Old 09-08-2013 , 14:13   Re: [ZR] Kill Clip
    Reply With Quote #2

    hey! can upgrade the plugin please?
    Perhaps you can add a certain ammo amount for each weapon..
    EX:
    Deagle_clip X
    Deagle_reserve X
    LaSt LeGenD is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-08-2013 , 14:24   Re: [ZR] Kill Clip
    Reply With Quote #3

    To clarify, he wanted additional functionality that I don't have the time to implement, anyone else that wants to do it is welcomed to do so and I'll merge the changes. He needs a .cfg that lets him set the reserve/clip amount independently of the cvar; if the weapon doesn't exist within the cfg, default to the cvar.
    __________________
    thetwistedpanda is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 09-25-2013 , 15:58   Re: [ZR] Kill Clip
    Reply With Quote #4

    Panduh!
    Why do you hard code ammo types?!1
    PHP Code:
    new iAmmoType GetEntProp(iWeaponProp_Data"m_iPrimaryAmmoType");
    new 
    iReserve GetEntProp(attackerProp_Send"m_iAmmo"4iAmmoType);
    SetEntProp(attackerProp_Send"m_iAmmo"iReserve iRecoverReserve4iAmmoType); 
    __________________
    Peace-Maker is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 09-25-2013 , 16:20   Re: [ZR] Kill Clip
    Reply With Quote #5

    It wasn't my code =P, I copy/pasted someone elses and changed a little bit of it. Haven't had the chance to actually write this properly since doing the request, so many bills and private plugins pay so little .
    __________________
    thetwistedpanda 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 12:46.


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