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.
Posts: 534
Threads: 21
Joined: Jun 2010
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).
Posts: 586
Threads: 24
Joined: Jun 2010
moved thread from "Help!" to "Mapping and Modding"
Posts: 481
Threads: 11
Joined: Jul 2010
possible? yes. legal? no.
listen to zarj :P
Posts: 1,823
Threads: 20
Joined: Jun 2010
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)
Is it actually illegal? Oh right... I intended to be blacklisted - I just wanted to mess about
Posts: 1,823
Threads: 20
Joined: Jun 2010
It's only illegal if you connect to online servers with it. If you just want to fool around, go ahead.
Posts: 3,780
Threads: 33
Joined: Jun 2010
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.
Posts: 1,823
Threads: 20
Joined: Jun 2010
*cough* notheyaren't *cough*
Posts: 3,780
Threads: 33
Joined: Jun 2010
23 Dec 10, 02:50AM
(This post was last modified: 23 Dec 10, 02:56AM by V-Man.)
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; }
Posts: 3,462
Threads: 72
Joined: Jun 2010
Stop trying V-Man ;)
He will find it himself.
However its current location is related to the anti-cheat I think.
Posts: 1,823
Threads: 20
Joined: Jun 2010
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 :)
Posts: 3,780
Threads: 33
Joined: Jun 2010
* V-Man aspires to C++
after writing this other bunch of scripts that have been on my mind...
Posts: 3,462
Threads: 72
Joined: Jun 2010
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.