Unlimited ammo/no reloads

A very simple script which allows users to fire without having to reload by setting bullets straight in the clip.

block load
{
	es_xsetinfo primary 1 // Unlimited ammo/no reloads for primary.
	es_xsetinfo secondary 1 // Unlimited ammo/no reloads for secondary.
	es_xsetinfo he_nade 1 // Unlimited Grenades.
	eventscripts_noisy 1
}

event weapon_fire
{
	if (server_var(primary) == 1) then es playerset clip event_var(userid) 1 15
	if (server_var(secondary) == 1) then es playerset clip event_var(userid) 2 15
	if (server_var(he_nade) == 1) do
	{
		if (event_var(weapon) equalto "hegrenade") then es_give event_var(userid) weapon_hegrenade
	}
}

Unlimited ammo/no reloads

Summary:

A very simple script which allows server owners to set whether a weapons ammo is unlimited with no reloads. This means the user can hold their finger on the fire button and the gun will never stop shooting (no need for reloads).

How does it work:

Simply restocks the ammo to 15 every time a bullet is fired. There are three variables you need to change. See script for details.

How do I install it:

You install it by simply creating a folder called: unlimitedammo inside Cstrike/Addons/Eventscripts/. Then copy and paste the script below into a blank notepad file. Once pasted, save the file as esunlimitedammo.txt and you are done. Once extracted saved, go into autoexec.cfg or server.cfg and type esload unlimitedammo then save. Alternatively, instead of editing autoexec.cfg or server.cfg you can simply type esload unlimited_ammo into console and change the map.

Please remember to open up esunlimitedammo.txt in notepad and edit the variables.

ENJOY

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Script.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Script a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Script.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • Gigi das Velhas's Levels
    • P1: Beggar
      Points: 303
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 10 months ago

    Posted by imthenew_guy

    Posted by Gigi das Velhas

    But, can I put this script into the map using pakrat and then the player use it?? Do you any way to use it a map? Thanks

    I suppose it may be possible to packrat this in and use logicauto to fire the esload command. Can't say I have tried tbh. The server would still require eventscripts to run for this to be possible though.

    ok, thanks

    User Title
    Css player and mapper
  • im_the_new_guy's Levels
    • P2: Drudge
      Points: 2,030
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 10 months ago

    Posted by Gigi das Velhas

    But, can I put this script into the map using pakrat and then the player use it?? Do you any way to use it a map? Thanks

    I suppose it may be possible to packrat this in and use logicauto to fire the esload command. Can't say I have tried tbh. The server would still require eventscripts to run for this to be possible though.

    Creator of Hide N Seek mod
  • Gigi das Velhas's Levels
    • P1: Beggar
      Points: 303
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 10 months ago

    But, can I put this script into the map using pakrat and then the player use it?? Do you any way to use it a map? Thanks

    User Title
    Css player and mapper
  • im_the_new_guy's Levels
    • P2: Drudge
      Points: 2,030
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 10 months ago

    Posted by Gigi das Velhas

    How do I do to put this script in my map, for when other players play it they have unlimited ammo??

    Thanks

    This requires eventscripts to be installed. Not designed to be embedded into a map.

    Creator of Hide N Seek mod
  • Gigi das Velhas's Levels
    • P1: Beggar
      Points: 303
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 10 months ago

    How do I do to put this script in my map, for when other players play it they have unlimited ammo??

    Thanks

    User Title
    Css player and mapper
  • im_the_new_guy's Levels
    • P2: Drudge
      Points: 2,030
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 12 months ago

    Posted by Sean112

    What are the variables in the script? Thanks.

    Do you mean the varibles to turn primary secondary and nades on and off?

    If so:

    es_xsetinfo primary 1 // Unlimited ammo/no reloads for primary.
    es_xsetinfo secondary 1 // Unlimited ammo/no reloads for secondary.
    es_xsetinfo he_nade 1 // Unlimited Grenades.
    

    1=On 0=Off otherwise reply.

    Creator of Hide N Seek mod
  • Sean112's Levels
    • P1: Beggar
      Points: 6
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 1 year ago

    What are the variables in the script? Thanks.

  • im_the_new_guy's Levels
    • P2: Drudge
      Points: 2,030
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 1 year ago

    I am not sure mate. I dont think u can remove the cocking of the rifle, but this will eliminate any desire for reloading once the clip is empty.

    Creator of Hide N Seek mod
  • MAXELITE's Levels
    • C1: Member
    • A3: Apprentice
      Account Age: 1 year
    Posted 1 year ago

    I'm running GG 5.1, i want to improve gun swap by eliminating the reload/cock script... Can this be done, if so, would you mind giving me a heads up, im new to this

    Bananite
  • im_the_new_guy's Levels
    • P2: Drudge
      Points: 2,030
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted 3 years ago

    Lol starting to script? I have been scripting for almost 4 years now lol. Thought I would whip up a simple and efficient script that allows people to turn unlimited ammo on.

    Creator of Hide N Seek mod

Credits

Submitter
im_the_new_guy's Levels
  • P2: Drudge
    Points: 2,030
  • C1: Member
  • A5: Veteran
    Account Age: 4 years
im_the_new_guy (Creator/Co-creator)
Key Authors
Im the new guy
Creator

Rating

10.00/10
Based off 1 rating(s)

Stats

Post Count
12
ViewCount
11,675
Date Added
3 years ago
Date Modified
3 years ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share