PDA

View Full Version : DoD MG Extra Recoil (v1.4)


diamond-optic
11-02-2006, 10:39 PM
DoD MG Extra Recoil
- Version 1.4
- 06.28.2008
- original: FireStorm
- updated: diamond-optic

Credit:

- Original idea came from TatsuSaisei's dod_mg_mustdeploy
plugin, just I didnt want to totally disable undeployed
MGs, i just wanted to make it a wee bit more difficult.


Information:

- Adds extra recoil to undeployed MGs

- Server List: http://www.game-monitor.com/search.php?rulename=dod_mg_extrarecoil_stats


CVARs:

dod_mg_extrarecoil "1" //Turn ON(1)/OFF(0)

//these 3 control the max/min effect angles
dod_mg_extrarecoil_pitch "40"
dod_mg_extrarecoil_yaw "20"
dod_mg_extrarecoil_roll "3"


Version Info:

- 11.02.2006 Version 1.0
Initial Release

- 12.03.2006 Version 1.1
Tweaked recoil.. Increased Pitch and Yaw, decreased Roll
Increased Max angle difference from 90 to 120 Yaw

- 12.16.2006 Version 1.2
Improved method of catching MG fire
Made whole thing more effecient :-)

- 05.28.2007 Version 1.3
Added cvars to control the angles of the effect
Combined the if statements into a single shorter one

- 06.28.2008 Version 1.4
Moved get_user_msgid to plugin_init


DOWNLOAD MIRROR: http://www.avamods.com/download.php?view.49

Box Cutter
11-03-2006, 06:09 AM
Awesome d-o, I just added this to the server and I am going to test it right now.

lol you are all over the place now, I love it. I tried it on all gunners and works great. This will be a great addition to the server. Thank you.

diamond-optic
12-04-2006, 01:36 AM
nothing major... just a small little tweak

Version 1.1 Update
- 12.03.2006 Version 1.1
Tweaked recoil.. Increased Pitch and Yaw, decreased Roll
Increased Max angle difference from 90 to 120 Yaw

diamond-optic
12-16-2006, 08:42 PM
update to version 1.2

- 12.16.2006 Version 1.2
Improved method of catching MG fire
Made whole thing more effecient :-)

WARDOG
02-12-2007, 04:59 PM
Welcome to the AMX Mod X 1.70-300 Compiler.
Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team

temp.sma(63) : error 017: undefined symbol "IN_ATTACK"

1 Error.
Could not locate output file ../amxx/dod_mg_extrarecoil.1.70.amx (compile failed).

diamond-optic
02-12-2007, 07:51 PM
compiles fine in 1.75 and up...

only thing that would cause that is IN_ATTACK not being in the const file for 1.70/1.71 but it should be..


but anyway..

try putting:
#define IN_ATTACK (1<<0)
in the sma file underneath the includes (and before plugin_init)

diamond-optic
06-02-2007, 11:55 PM
Update to v1.3

- 05.28.2007 Version 1.3
Added cvars to control the angles of the effect
Combined the if statements into a single shorter one

New CVARs:
//these 3 control the max/min effect angles
dod_mg_extrarecoil_pitch "40"
dod_mg_extrarecoil_yaw "20"
dod_mg_extrarecoil_roll "3"

politvs
05-15-2008, 10:27 AM
I'd like to know which exactly are the weapons affected by this plugin. I mean, evidently MG42, Bren... are, but BAR? Axis "para" weapons? Could this be customizable?

Thanks in advance!

PoLiTvS

diamond-optic
05-15-2008, 08:22 PM
the only weapons affected are:

30cal
MG34
MG42

and you can add/subtract/etc the weapons affected by editing this line:
register_event("CurWeapon","recoil_check","be","1=1","2=17","2=18","2=21","3>0")

its the 2=# parts

like you you wanted to add some weapons you would add the following

"2=11" for BAR
"2=23" for FG42
"2=27" for bren

and as for the 3 that are already there, they are:

"2=17" is MG42
"2=18" is 30cal
"2=21" is MG34

politvs
05-16-2008, 06:51 AM
the only weapons affected are:

30cal
MG34
MG42

and you can add/subtract/etc the weapons affected by editing this line:
register_event("CurWeapon","recoil_check","be","1=1","2=17","2=18","2=21","3>0")

its the 2=# parts

like you you wanted to add some weapons you would add the following

"2=11" for BAR
"2=23" for FG42
"2=27" for bren

and as for the 3 that are already there, they are:

"2=17" is MG42
"2=18" is 30cal
"2=21" is MG34

Wow, thanks! I think you could add this info to de .sma file so anybody could change it if they want.

Just another question? Shouldn't be the Bren added by default too? Isn't it a "real" MG?

Thanks again!

PoLiTvS

diamond-optic
05-16-2008, 07:23 PM
ya i guess technically... but since the british are already short on weapon selections and since it has a small magazine.. i see it more along the lines of the bar and fg42

politvs
05-19-2008, 08:09 AM
Ok, thanks for all!!

diamond-optic
07-27-2008, 09:39 PM
updated to version 1.4


- 06.28.2008 Version 1.4
Moved get_user_msgid to plugin_init