PDA

View Full Version : DoD No Reload


dodsynthetic
05-28-2009, 08:06 AM
DoD No Reload v1.001

This plugin keeps all weapons full of bullets negating the need to reload.

===========================
v1.001 Changes
===========================
- Moved check for entity validity before any entity functions are performed. It was throwing errors
on entities no longer existing. Owned again by the obvious. I'll blame it on lack of sleep this
time. Thanks Diamond Optic for spotting it. :D

===========================
CVARs
===========================
no_reload | 0 = off | 1 = on
- Enables or disables the no_reload plugin. Default off.

===========================
Installation
===========================
- Compile the .sma file | An online compiler can be found here:
http:www.amxmodx.org/webcompiler.cgi
- Copy the compiled .amxx file into your addons\amxmodx\plugins folder
- Add the name of the compiled .amxx to the bottom of your addons\amxmodx\configs\plugins.ini

dodsynthetic
05-28-2009, 08:14 AM
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
05-28-2009, 08:41 AM
Whoever just downloaded it, re-download it. I screwed something up but it's all good now. XD

abcz
06-03-2009, 08:10 AM
Hi, Thanks for the plugin. I tested it and it compiled n stuff but when I run and the debug thingy keep on saying.

Run Time error 10: native error (native "pev")
[o] dod_no_reload.sma::func_full_pack (line 141)

My fps would drop down to like 30 fps.

abcz
06-03-2009, 10:12 AM
Now that I used your compiled file I get a different error.

Displaying debug trace (plugin "dod_no_reload.axx")
Run Time error 10: native error (native "pev")
[o] 1063.attach::func_full_pack (line 141)
[FAKEMETA] Invalid entity

Also 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
06-03-2009, 06:05 PM
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:

public func_full_pack(nil,nil2,id) {
if(get_pcvar_num(p_reload))
{
if(pev_valid(id))
{
new class_name[32]
pev(id,pev_classname,class_name,sizeof class_name - 1)

if(contain(class_name,"weapon_") > -1)
set_pdata_int(id,108,5,4)
}
}
}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...

abcz
06-03-2009, 10:28 PM
Thanks diamond-optic. It work like a charm. You guys are the best.

dodsynthetic
06-11-2009, 05:03 AM
All fixed now. Ugh. I need more free time and more sleep. XD I went with combining the cvar and valid check.

MOSdod
03-06-2010, 11:54 PM
Can you please make a correct .sma file for the source.

I dont have it working. tried many times.

thanks

diamond-optic
03-07-2010, 06:37 AM
whats wrong with the sma file?


are you setting no_reload to 1?