AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [NMRiH] Infinite Ammo (unlimited ammo) (https://forums.alliedmods.net/showthread.php?t=194993)

Chanz 09-02-2012 11:49

[NMRiH] Infinite Ammo (unlimited ammo)
 
2 Attachment(s)
Infinite Ammo
for No More Room in Hell.
Index:

Description:
Simple thing: Infinite Ammo for all weapons in "No More Room in Hell".

Warning: This plugin does not work for other games/mods!
Requirements:
  • SourceMod 1.3 or higher.

Known Issues:
  • none

How to report issues:
Please read the 5 latest posts from other users within this thread.
Post within this thread and try to add the following information, it makes it much easier for me to help you and speeds it up:
  1. What game are you running the plugin on. (CSS, HL2DM, TF2, etc...)
  2. The server IP (DON'T write or send your rcon password or any other password, if a direct access is needed I will contact you PERSONALLY)!
  3. What the problem is:
    • The server is crashing, lagging, etc.
    • The plugin isn't loading.
    • The plugin isn't working right. (mostly you set one of the configuration variables wrong, please be sure to read it again but don't be scared, just ask if something is unclear and I try to explain and add a better description to this post).
  4. What the server console prints, when you type the following into it without "" (if you can't access the server console directly use HLSW):
    1. "plugin_print"
    2. "meta list"
    3. "sm plugins list"
    4. "sm exts list"
  5. Attach/upload your config file with your post.
  6. Search the latest error log (<moddir>/addons/sourcemod/logs/error_xxxxxx.log) that contains an error about this plugin.

Changelog:
Code:

  • v1.2 for NMRiH-v1.05
    • Changed the logic how to handle infinite ammo to prevent a full inventory by ammunition.


  • v1.1 for NMRiH-v1.04
    • First public release.



Console/Chat commands:

  • none
Console variables:
PHP Code:

// This file was auto-generated by SourceMod (v1.4.5-dev)
// ConVars for plugin "nmrih-infinite-ammo.smx"


// Enables or disables this plugin
// -
// Default: "1"
nmrih-infinite-ammo_enable "1" 


Important information:
  • BE SURE TO OVERWRITE THE OLD CONFIG FILE IN <moddir>/cfg/sorucemod/
Download:
The provided download is configured to start working as soon the plugin is loaded.
Index (back to top)
Installation:
  • Extract the zip into your mod folder.

Index (back to top)
Credits:
Thank you Berni with git and suggestions.
Index (back to top)
flattr:
You like this plugin? Then how about a little flattr?

http://api.flattr.com/button/flattr-badge-large.png

RonaldLee 09-24-2012 10:57

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
This plugin worked fine with v. 1.04, but v 1.05 of NMRiH was recently released, now the plugin won't work (and my server just crashes). The gamedata file is out-of-date and has not been updated since 1.02.

Chanz 10-09-2012 12:46

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
updated to 1.2.
see first post for the change log.

If your server is crashing, go and get the latest gamedata files:
http://www.nomoreroominhell.com/foru...showtopic=8784

gringos 03-27-2013 05:01

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Hi,

First of all, thanks for this great plugin!
Could you make a no reload option, with cvar for on/off eg: sm_noreloads 0|1

Just for fun!

Greetings,

Gringos

Konterer 08-09-2013 13:02

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
1 Attachment(s)
Hello Chanz,

could u help me maybe?
I installed it and it wont load for any reason (no error in logfiles)!

1. CS:S
2. 62.75.146.131:27015
3. isn't loading. (tried to compile, got no error while compile but doesnt make a difference)
4.
Code:

rcon plugin_print
Loaded plugins:
---------------------
0:    "Metamod:Source 1.9.2"
---------------------

rcon meta list
Listing 3 plugins:
  [01] SourceMod (1.5.0-dev+3855) by AlliedModders LLC
  [02] CS Tools (1.5.0-dev+3855) by AlliedModders LLC
  [03] SDK Tools (1.5.0-dev+3855) by AlliedModders LLC

sm plugins
 "Reserved Slots" (1.5.0-dev+3855) by AlliedModders LLC
 "Player Commands" (1.5.0-dev+3855) by AlliedModders LLC
 "Basic Chat" (1.5.0-dev+3855) by AlliedModders LLC
 "Admin Menu" (1.5.0-dev+3855) by AlliedModders LLC
 "Noblock players and Nades" (2.0) by Originally by Tony G. Fixed by Rogue
 "DeathMatch:SM Preset Spawns" (1.8.0) by Otstrel.ru Team, TigerOx, TechKnow
 "Basic Votes" (1.5.0-dev+3855) by AlliedModders LLC
 "Infinite Jumping" (2.14.40) by Chanz
 "SM Super Commands" (0.60) by pRED*
 "DeathMatch:SM Spawn Protection" (1.8.0) by Otstrel.ru Team, TigerOx, TechKnow
 see more, type "sm plugins 11"
 see more, type "sm plugins 11"
sm plugins 11
 "Fun Votes" (1.5.0-dev+3855) by AlliedModders LLC
 "Anti-Flood" (1.5.0-dev+3855) by AlliedModders LLC
 "Admin File Reader" (1.5.0-dev+3855) by AlliedModders LLC
 "Basic Comm Control" (1.5.0-dev+3855) by AlliedModders LLC
 "Sound Commands" (1.5.0-dev+3855) by AlliedModders LLC
 "Basic Info Triggers" (1.5.0-dev+3855) by AlliedModders LLC
 "Admin Help" (1.5.0-dev+3855) by AlliedModders LLC
 "Basic Ban Commands" (1.5.0-dev+3855) by AlliedModders LLC
 "Basic Commands" (1.5.0-dev+3855) by AlliedModders LLC
 "DeathMatch:SM Ragdoll Remover" (1.8.0) by Otstrel.ru Team, TigerOx, TechKnow
 "DeathMatch:SM Weapons Remover" (1.8.0) by Otstrel.ru Team, TigerOx, TechKnow
sm plugins 22
 "SM Super Menu" (0.5) by pRED*
 "Fun Commands" (1.5.0-dev+3855) by AlliedModders LLC
 "DeathMatch:SM Elimination" (1.8.0) by Otstrel.ru Team
 "DeathMatch:SM First Spawn" (1.8.0) by Otstrel.ru Team
 "Client Preferences" (1.5.0-dev+3855) by AlliedModders LLC
 "DeathMatch:SM" (1.8.0) by Otstrel.ru Team, TigerOx, TechKnow

sm exts
 "Automatic Updater" (1.5.0-dev+3855) by AlliedModders LLC: Updates SourceMod gamedata files
 "Webternet" (1.5.0-dev+3855) by AlliedModders LLC: Extension for interacting with URLs
 "CS Tools" (1.5.0-dev+3855) by AlliedModders LLC: CS extended functionality
 "BinTools" (1.5.0-dev+3855) by AlliedModders LLC: Low-level C/C++ Calling API
 "SDK Tools" (1.5.0-dev+3855) by AlliedModders LLC: Source SDK Tools
 "Top Menus" (1.5.0-dev+3855) by AlliedModders: Creates sorted nested menus
 "Client Preferences" (1.5.0-dev+3855) by AlliedModders: Saves client preference settings
 "SQLite" (1.5.0-dev+3855) by AlliedModders LLC: SQLite Driver
 "GeoIP" (1.5.0-dev+3855) by AlliedModders LLC: Geographical IP information

5.
Made no changes on the plugin config only my own server.cfg...

6.
I dont know why, but i cant find a error in my Log-files ... what the hell!!!

Chanz 08-09-2013 14:52

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Sorry this plugin is for the mod "No More Room in Hell" only.

I've changed the description which can be misunderstood.

anthony_g4i 10-31-2013 16:10

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Work whith standalone version ?

bhoffman 11-03-2013 19:15

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Is there a way to decide who gets the ammo?

Chanz 11-03-2013 19:22

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Quote:

Originally Posted by anthony_g4i (Post 2055240)
Work whith standalone version ?

I don't know, but you can try for yourself. :-)

Quote:

Originally Posted by bhoffman (Post 2056601)
Is there a way to decide who gets the ammo?

Nope, I didn't see a reason for this.

Ahmed shah 11-05-2013 07:02

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Please upload a video while doing all this I cant do it! please!!!

Chanz 11-05-2013 07:08

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
A video about all this? Please be more specific or you'll see a video about everything but about plugins. :-)

Ahmed shah 11-05-2013 07:26

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
I don't understand where to extract the folder and the over write thing
if you could upload a video

saccade 11-06-2013 06:24

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Hello!

I am also having problems with this plug-in (i am noob, plz tell me wat r buttonz?)
After following the wiki instructions to get a dedicated server running, which works fine people can connect, i use "plugin_print" (the other commands do not work in the srcds console), and it says:

0: "metamod:source 1.10.1-dev"

I've already merged the plugin files in the NMRIH_DS directory, and they are in the correct place as far as i can tell.
They just do not seem to be loading up or recognised as a plugin.
Also... wtf is the server.cfg? I made a new one as there wasn't one (idle kick is SO annoying), but wherever i put it, the srcds says, "no server.cfg found".
Perhaps this is the problem?

How can I get my dedicated server to acknowledge and run the plugin? is there a command i can use to tell it to load it, as i can't figure it out... :/

Thanks!
Pete :)


--------

EDIT:

DOH!
Seems i hadn't installed sourcemod correctly, and that is why everything wasn't working! D:

After fixing the installation, it works great, thanks (sometimes, it's nice just to blast without fear of dying).

Now, I just need to figure out the directory structure so i know where to put my config files so we can take bathroom breaks and spend 20 mins chatting instead of playing and not get kicked, etc...

Hopefully there will be more info on the net - this was very, very useful in figuring out what hte problem was:
http://wiki.alliedmods.net/Managing_...d_installation


cheers mateys.

Chanz 11-06-2013 15:33

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Hi saccade,

first of all, what you did was to high jack a thread. This means you've posted in a thread with an entirely different question than its being discussed in it.
Since you're new to SourceMod, thats no big deal, I just wanted to make it clear to you.

Now to your question.
Within your cfg folder there should be a sourcemod folder ( <moddir>/cfg/sourcemod ). This folder contains only SourceMod and SourceMod Plugin config files. You want to edit those files to adjust the cvars (console variables) to your liking. BUT you don't want to add new cvars or create new files in it.

Because everything that has to do with No More Room in Hell, should be in your server.cfg. If it doesn't exist create a new text file (ex. "New Textdocument.txt") in your /cfg/ folder and rename it to server.cfg.
Warning: Be sure to enable the option to see the file extensions on your system, to avoid creating a server.cfg.txt file, because that will not work. :-)

Once created your server.cfg open it and paste the following into it:
Code:

hostname "saccades NMRiH server" // set your server name
sv_passwort "" // if you'd like to set a password
mp_autokick 0 // 1=Kick idle/team-killing players, 0=off

I'm not sure about the mp_autokick cvar, since many games use different cvar names.
But you can use a command to find commands and cvars, guess what its "find".
As example, I used the command "find kick" in the server console and the result is the following:
Code:

find kick
        "sm_vote_kick" = "0.60" min. 0.050000 max. 1.000000
          - percent required for successful kick vote.
        "sm_votekick"
          - sm_votekick <player> [reason]
        "sm_kick"
          - sm_kick <#userid|name> [reason]
        "sm_hns_cheat_punishment" = "1" min. 0.000000 max. 2.000000
          - How to punish players with wrong cvar values after 15 seconds? 0: Disabled. 1: Switch to Spectator. 2: Kick
        "sm_spray_enablekick" = "1"
          - Enables the use of Kick as a punishment.
        "sm_reserve_kicktype" = "0" min. 0.000000 max. 2.000000
          - How to select a client to kick (if appropriate)
        "sm_playersvotes_immunegroups" = ""
          - admins that are members of these groups will not be affected by votekick, ban, or mute.  (ex: "Full Admins; Clan Members; etc")
        "sm_playersvotes_immunity" = "1.0" ( def. "0.0" ) min. -1.000000 max. 99.000000
          - admins with equal or higher immunity level will not be affected by votekick, ban, or mute.  0 to immunize all admins.  -1 to ignore
        "sm_votekick_team_restrict" = "0.0" min. 0.000000 max. 1.000000
          - restrict kick votes to teams.  affects ratios.  1 to enable, 0 to disable.
        "sm_votekick_limit" = "5.0" ( def. "-1.0" ) min. -1.000000 max. 1000.000000
          - number of kick votes allowed per player, per map.  0 to disable voting.  -1 for no limit
        "sm_votekick_delay" = "60.0" min. 0.000000 max. 1000.000000
          - time in seconds before votekick is allowed after map start
        "sm_votekick_minimum" = "4.0" min. -1.000000 max. 64.000000
          - minimum votes required for successful votekick. -1 to disable voting
        "sm_votekick_ratio" = "0.60" min. 0.000000 max. 1.000000
          - ratio required for successful votekick.
        "stamm_stammtagkick" = "1"
          - 1 = Kicks Player, which use Stamm Tag, but aren't VIPs, 0 = No Kick
        "stamm_vip_kick_message2" = "Du wurdest gekickt um einen VIP slot freizuhalten" ( def. "You get kicked, to let a VIP slot free" )
          - Message for the random kicked person
        "stamm_let_free" = "0"
          - 1 = Let a Slot always free and kick a random Player  0 = Off
        "stamm_vip_kick_message" = "Du bist auf einen VIP Slot gejoint" ( def. "You joined on a Reserve Slot" )
          - Message, when someone join on a Reserve Slot
        "mp_disable_autokick"
          game
          - Prevents a userid from being auto-kicked
        "mp_hostagepenalty" = "13"
          game notify
          - Terrorist are kicked for killing too much hostages
        "bot_kick"
          game
          - bot_kick <all> <t|ct> <type> <difficulty> <name> - Kicks a specific bot, or all bots, matching the given criteria.
        "mp_autokick" = "1"
          game replicated
          - Kick idle/team-killing players

        "mp_spawnprotectiontime" = "5"
          game replicated
          - Kick players who team-kill within this many seconds of a round restart.
        "sv_pure_kick_clients" = "1"
          - If set to 1, the server will kick clients with mismatching files. Otherwise, it will issue a warning to the client.
        "kickid"
          - Kick a player by userid or uniqueid, with a message.
        "kick"
          - Kick a player by name.
        "kickall"
          - Kicks everybody connected with a message.

I hope that helps you, BUT please don't ask questions about NMRiH, SourceMod or other plugins than this one, in this thread. Use the general section for this! :-)

Have a nice day.

NakashimaMakota 11-08-2013 09:27

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
FYI, finding that this plugin no longer works due to the patch last night. Any time someone connects it crashes!

Seems gamedata might be the culprit?

Chanz 11-08-2013 11:37

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Yes that sounds like game data files are outdated.

asherkin 11-13-2013 10:37

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
PHP Code:

    // hax against valvefail (thx psychonic for fix)
    
if (GuessSDKVersion() == SOURCE_SDK_EPISODE2VALVE) {
        
SetConVarString(Plugin_VersionCvarPlugin_Version);
    } 

This is pointless now.

Chanz 11-13-2013 13:17

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Do you mean pointless in general or because the plugin is only for NMRiH?

asherkin 11-13-2013 14:06

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Quote:

Originally Posted by Chanz (Post 2060436)
Do you mean pointless in general or because the plugin is only for NMRiH?

In general, but doubly so for NMRIH, as NMRIH isn't on that engine version any more.

Petepete 11-28-2013 17:58

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Installed as told and doesnt seem to be working for me.

the files in the DL are in the correct locations under the Smod directory (ive put smod and the other one in addons. Addons being with the main cfg, gaminfo.txt ect

Any ideas?

MafiaBoss 12-08-2013 11:44

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Is it possible that you could have a version that uses a convar to only toggle it on players with a specific flag / root ? I tried this plugin out and 3 out of 8 loved it.. I like it, would love to see a root version of it

yuppicide 12-15-2013 20:27

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Does this only give infinite ammo to one player?

One person had unlimited ammo. Nobody else got it. I got it once, but never again.

MafiaBoss 12-15-2013 21:13

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Quote:

Originally Posted by yuppicide (Post 2072518)
Does this only give infinite ammo to one player?

One person had unlimited ammo. Nobody else got it. I got it once, but never again.

Everyone has it. Just press R to get it working for you

yuppicide 12-16-2013 14:48

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Well, one game I think two people got ammo. One guy left, so only one had unlimited ammo. I think I've only ever got it once. Every game I go in I can see ammo in my inventory, but it says I am empty when I try to reload.

khanhtruong777 12-16-2013 23:47

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
2 Attachment(s)
Hey Chanz, I got something that need your attention. There's a glitch that allow grenades to be infinite. Sometimes they stack and float in the map. I hope you could modify the plugin so that it handles grenades too.

Some info in case you need it.
plugin_print
Spoiler

meta list
Spoiler

sm plugins list
Spoiler

sm exts list
Spoiler

khanhtruong777 12-18-2013 22:04

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Hello?! No one care about this thread anymore? :(

MafiaBoss 12-18-2013 23:47

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Quote:

Originally Posted by khanhtruong777 (Post 2073737)
Hello?! No one care about this thread anymore? :(

Thats what I thought when you didn't reply me on the 'weapon menu' thread, I updated the snapshots and it still doesnt work, it's okay now though, I use admin-tool by Chanz too, works wonders, gives me the flare gun and everything else very nicely in 1 plugin.

khanhtruong777 12-19-2013 02:37

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Ah, sorry about that. But it doesn't matter which snapshot im using, just update to latest version. BTW, im using metamod 1.11 build 894 and sourcemod 1.6 build 4177. Now my only concern is the columns of grenades floating in the map, very annoying. It could be someone died who have 30 grenades in his inventory, they didn't drop on the ground or deleted but stack into column. :|

Chanz 12-20-2013 08:11

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Its not that I/we don't care about, but as example I've got a job and sometimes even the week end is pretty busy for me. So don't give up and wait for us. :-)

Alpha Wing 02-22-2014 14:27

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
I've been reading this forum as well as some others in regard to this plugin. I'm looking to make this plugin available to only server admins, is this possible? For example, for the Gun Menu (!guns) I could put the command in the admin_overrides.cfg as ("sm_guns" "z"), this way I have control on limiting the Gun Menu use to admins only. I am seeking to do the same for this plugin, but I don't know the command to put in the admin_overrides.cfg (sm_infiniteammo???). I really don't even know if that is possible, I'm just trying to be creative. Plus, by doing this I wouldn't be limiting the plugin itself, which I think is a win/win for the dev of this plugin and server admins like myself who want to limit it's use.

If anyone is still reading this thread and has any thoughts, please reply.

JEnglish 11-01-2014 13:21

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
I think this plugin is broke,trying to get this to work with sourcemod 1.63

HolyDerpSquad 01-30-2015 21:42

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Is there a way you could make a Infinite Clip toggle?

Mitsuru 03-25-2018 03:24

Re: [NMRiH] Infinite Ammo (unlimited ammo)
 
Why unlimited ammunition? Maybe there are too many types of weapons. / laugh loudly.


All times are GMT -4. The time now is 04:41.

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