Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin

DoD No Reload

by dodsynthetic · 2009-05-28 · 9 replies · 10386 views · 88 downloads

Read the thread (10 posts)

From the first post

DoD No Reload v1.001
rn
rnThis plugin keeps all weapons full of bullets negating the need to reload.
rn
rn===========================
rnv1.001 Changes
rn===========================
rn- Moved check for entity validity before any entity functions are performed. It was throwing errors
rn on entities no longer existing. Owned again by the obvious. I'll blame it on lack of sleep this
rn time. Thanks Diamond Optic for spotting it. :D
rn
rn===========================
rnCVARs
rn===========================
rnno_reload | 0 = off | 1 = on
rn- Enables or disables the no_reload plugin. Default off.
rn
rn===========================
rnInstallation
rn===========================
rn- Compile the .sma file | An online compiler can be found here:
rn http:www.amxmodx.org/webcompiler.cgi
rn- Copy the compiled .amxx file into your addonsamxmodxplugins folder
rn- Add the name of the compiled .amxx to the bottom of your addonsamxmodxconfigsplugins.ini

Files

dod_no_reload.sma Plugin Source 3 KB 88 dl Download Compile

The thread

All 10 posts from 4 people on DoD No Reload, kept as they were written.

dodsynthetic
started this thread
Posts: 277
Threads: 15
Joined: Mar 2007
05-28-2009, 07:06 AM #1

DoD No Reload v1.001rnrnThis plugin keeps all weapons full of bullets negating the need to reload.rnrn===========================rnv1.001 Changesrn===========================rn- Moved check for entity validity before any entity functions are performed. It was throwing errorsrn on entities no longer existing. Owned again by the obvious. I'll blame it on lack of sleep this rn time. Thanks Diamond Optic for spotting it. :Drnrn===========================rnCVARsrn===========================rnno_reload | 0 = off | 1 = onrn- Enables or disables the no_reload plugin. Default off.rnrn===========================rnInstallationrn===========================rn- Compile the .sma file | An online compiler can be found here:rn http:www.amxmodx.org/webcompiler.cgirn- Copy the compiled .amxx file into your addonsamxmodxplugins folderrn- Add the name of the compiled .amxx to the bottom of your addonsamxmodxconfigsplugins.ini

dodsynthetic
started this thread
Posts: 277
Threads: 15
Joined: Mar 2007
05-28-2009, 07:14 AM #2

If anyone wants extra features, feel free to post. I was thinking of adding weapon limiting but I'm too tired tonight and I have to get up early tomorrow and change out the broken timing chain guide in the engine of one of the cars I just bought as well as help my roommate finish replacing the rear main seal on his engine and the input shaft seal on his auto tranny.

dodsynthetic
started this thread
Posts: 277
Threads: 15
Joined: Mar 2007
05-28-2009, 07:41 AM #3

Whoever just downloaded it, re-download it. I screwed something up but it's all good now. XD

A abcz
posted here
Posts: 5
Threads: 1
Joined: Mar 2009
06-03-2009, 07:10 AM #4

Hi, Thanks for the plugin. I tested it and it compiled n stuff but when I run and the debug thingy keep on saying.rnrnRun Time error 10: native error (native "pev")rn [o] dod_no_reload.sma::func_full_pack (line 141)rnrnMy fps would drop down to like 30 fps.

A abcz
posted here
Posts: 5
Threads: 1
Joined: Mar 2009
06-03-2009, 09:12 AM #5

Now that I used your compiled file I get a different error. nnDisplaying debug trace (plugin "dod_no_reload.axx")nRun Time error 10: native error (native "pev")n [o] 1063.attach::func_full_pack (line 141)n[FAKEMETA] Invalid entitynnAlso When its on my fps drop to 15 and my ping will jump up to like 200. But when I turn if off fps go back to 100+fps and ping is 6.

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
06-03-2009, 05:05 PM #6

well untill syn see's this and gets a chance to reply/fix it.. i think replacing the whole public func_full_pack function with this should do it:nn

public func_full_pack(nil,nil2,id) {n    if(get_pcvar_num(p_reload))n    {n        if(pev_valid(id))n        {n            new class_name[32]n            pev(id,pev_classname,class_name,sizeof class_name - 1)n            n            if(contain(class_name,"weapon_") > -1)n                set_pdata_int(id,108,5,4)n        }n    }n}
i think just moving the pev_valid check should be enough, tho it might be better to combine the get_pcvar_num and pev_valid checks into one statement, but ill let syn do whatever with that lol...

A abcz
posted here
Posts: 5
Threads: 1
Joined: Mar 2009
06-03-2009, 09:28 PM #7

Thanks diamond-optic. It work like a charm. You guys are the best.

dodsynthetic
started this thread
Posts: 277
Threads: 15
Joined: Mar 2007
06-11-2009, 04:03 AM #8

All fixed now. Ugh. I need more free time and more sleep. XD I went with combining the cvar and valid check.

MOSdod
posted here
Posts: 74
Threads: 12
Joined: Mar 2010
03-06-2010, 11:54 PM #9

Can you please make a correct .sma file for the source.rnrnI dont have it working. tried many times.rnrnthanks

diamond-optic
posted here
Posts: 2,068
Threads: 103
Joined: May 2005
03-07-2010, 06:37 AM #10

whats wrong with the sma file?nnnare you setting no_reload to 1?

DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC