Raised This Month: $ Target: $400
 0% 

Infinite Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Plugin ID:
13
Plugin Version:
0.5
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    31 
    Plugin Description:
    Simple on/off switch for infinite ammo
    Old 05-20-2007 , 18:32   Infinite Ammo
    Reply With Quote #1

    Infinite Ammo, pretty simple concept.

    Cvar:
    sm_iammo_enable <0|1|2> - 0 = disable infinite ammo; 1 = allow infinite ammo with the command; 2 = automatically give everyone infinite ammo

    Command:
    REQUIRES Admin Kick -
    sm_iammo <user id | name | @<team> | @all> <0 | 1> - Gives or removes infinite ammo from a player.

    Setting the enable cvar to 2 will give everyone in the server infinite ammo and setting it from 2 to any other valid value will remove infinite ammo from everyone.

    Note: When removing infinite ammo, no attempt is made to set the player(s)' clip to the right size, so it will start from 50 and go down normally from there.

    Note 2 (TF2 Specific): Flamethrower still runs out of ammo eventually. The blu team is targetted using @blue instead of @blu - blame pred.
    Attached Files
    File Type: sp Get Plugin or Get Source (infiniteammo.sp - 22435 views - 3.6 KB)
    __________________

    Last edited by twistedeuphoria; 06-26-2009 at 19:28.
    twistedeuphoria is offline
    sslice
    Senior Member
    Join Date: Feb 2005
    Location: Texas, USA
    Old 05-20-2007 , 19:07   Re: [PLUGIN] Infinite Ammo
    Reply With Quote #2

    Those types of offsets can be found dynamically using FindSendPropOffs().

    Other than that and maybe looping through all of that OnGameFrame.. it looks good.
    __________________
    sslice is offline
    twistedeuphoria
    Veteran Member
    Join Date: Jul 2004
    Old 05-20-2007 , 19:18   Re: [PLUGIN] Infinite Ammo
    Reply With Quote #3

    Updated to use FindSendPropOffs() thanks to teame06.
    __________________
    twistedeuphoria is offline
    BAILOPAN
    Join Date: Jan 2004
    Old 05-20-2007 , 19:35   Re: [PLUGIN] Infinite Ammo
    Reply With Quote #4

    sup twisty!

    one suggestion - use i=1; i<=maxplayers instead of i=0; i<33

    CS:S has a max player count of 64
    __________________
    egg
    BAILOPAN is offline
    twistedeuphoria
    Veteran Member
    Join Date: Jul 2004
    Old 05-20-2007 , 19:51   Re: [PLUGIN] Infinite Ammo
    Reply With Quote #5

    More updates:

    Changed it so the plugin does nothing if more than one client matches the name given.

    Fixed the Unknown command message.
    __________________
    twistedeuphoria is offline
    API
    Veteran Member
    Join Date: May 2006
    Old 07-03-2007 , 04:28   Re: Infinite Ammo
    Reply With Quote #6

    Nice :]
    Approved.
    __________________
    API is offline
    Send a message via AIM to API
    MoggieX
    Veteran Member
    Join Date: Aug 2007
    Location: n00bville
    Old 08-11-2007 , 18:57   Re: Infinite Ammo
    Reply With Quote #7

    Just tested this under Linux, in chat '!sm_iammo mogg 1' and it killed my CS:Source game, the rest of the other players were un-effected.

    Checked the logs and there was no re4cord of anything for this plugin =(
    __________________
    MoggieX is offline
    Send a message via Skype™ to MoggieX
    Shaman
    Senior Member
    Join Date: Dec 2006
    Location: Istanbul, Turkey
    Old 08-12-2007 , 13:02   Re: Infinite Ammo
    Reply With Quote #8

    Code:
    new zomg;
    __________________
    Shaman is offline
    Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
    Twelve-60
    Senior Member
    Join Date: Aug 2007
    Old 09-05-2007 , 13:18   Re: Infinite Ammo
    Reply With Quote #9

    I just quickly edited this to make it always give everyone unlimited ammo rather then having to type in the command (Great for deathmatch servers )

    http://twelve-60.ampaste.net/93287

    - Twelve-60

    Last edited by Twelve-60; 09-14-2007 at 10:32.
    Twelve-60 is offline
    atomen
    Veteran Member
    Join Date: Oct 2006
    Location: Stockholm, Sweden
    Old 09-09-2007 , 11:52   Re: Infinite Ammo
    Reply With Quote #10

    Twisted ,

    Do you think u can remake ur plugins
    so people don't need to reload an have unlimited
    ammo Please !

    // If some1 knows a plugins like that please tell me
    atomen is offline
    Send a message via MSN to atomen
    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:27.


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