Mod for AC
#1
Hi everyone, I'm new to these forums, and I'm looking for a way to modify the guns in AC (In particualr I'm looking to dramatically increase the kickback on a particular gun and increase its damage) Is this possible?

Thanks in advance,
Owen.
Thanks given by:
#2
Changes to kickback and damage would require changing the source code.
If you were to make these types of changes, you would not be allowed to use your client on regular servers (read: you would be blacklisted on the central blacklist and be unable to play AC anymore).
Thanks given by:
#3
moved thread from "Help!" to "Mapping and Modding"
Thanks given by:
#4
possible? yes. legal? no.

listen to zarj :P
Thanks given by:
#5
Download the source from http://sourceforge.net/projects/actiongame/files/. Then you rummage around the source.

(it's a header file you're looking for)
Thanks given by:
#6
Is it actually illegal? Oh right... I intended to be blacklisted - I just wanted to mess about
Thanks given by:
#7
It's only illegal if you connect to online servers with it. If you just want to fool around, go ahead.
Thanks given by:
#8
LOL
not illegal.
You just wouldn't be welcome on public servers.
You'll need a good handle on C and C++, plus lots of patience.
The items you're talking about are in Gibstick's link, under weapon.cpp.
Thanks given by:
#9
*cough* notheyaren't *cough*
Thanks given by:
#10
D:
weapon.h?
That seems to have the void definitions, but no numerical specifications.

recoil is right here...
weapon.cpp Wrote:assaultrifle::assaultrifle(playerent *owner) : gun(owner, GUN_ASSAULT) {}

int assaultrifle::dynspread() { return shots > 3 ? info.spread * 3 : info.spread; }
float assaultrifle::dynrecoil() { return info.recoil + (rnd(8)*-0.01f); }
bool assaultrifle::selectable() { return weapon::selectable() && !m_noprimary && this == owner->primweap; }
Thanks given by:
#11
Stop trying V-Man ;)
He will find it himself.
However its current location is related to the anti-cheat I think.
Thanks given by:
#12
I believe they put it in that obscure header file to deter cheaters. It doesn't matter much anymore because these simple cheats are easily detected (amirite) by the anticheatsystem. Any programmer can find it easily :)
Thanks given by:
#13
* V-Man aspires to C++
after writing this other bunch of scripts that have been on my mind...
Thanks given by:
#14
Gibstick, Fun Fact:
These stats appeared in their current location sometime between 1.0.4 and 1.1, before the carbine and the starts of Brahma's (Prof Dr.?) anti-cheat implements in that file.
Thanks given by: