Where can I find exact files in source?

2 replies [Last post]
Gadzik
User offline. Last seen 1 year 32 weeks ago. Offline
Joined: 10/30/2011
Posts: 1

Hello.
First of all, I'm not sure if I posted this in right forum, but, this seems to be best for this.
I'm a little modder and I've been playing this game with my firends.
I just downloaded source code for Hedgewars and I'm trying to find out which file contains informations about weapons.
And here's the problem.
I'd love to add or edit some weapons, but I can't find any file to program them.
I know that this won't let me play online with other guys, but I just want to make it for myself and maybe for some of my friends, so we could play and have more fun together.
Can anybody tell me where is this file?

sheepluva
sheepluva's picture
User offline. Last seen 4 hours 34 min ago. Offline
Joined: 07/18/2009
Posts: 209

folder "hedgewars":

GSHandlers.inc contains the step handlers for gears, so mostly weapon behavior
uGears.pas defines which gear/weapon uses which handler and what their initialization values are (among other things)
uGearRender.pas defines how they are rendered
uVariables.pas defines ammo and their default values (among other things like graphics and sounds)
uConst.pas defines some constants, e.g. for ammo that may be interesting to you

I probably forgot something ... :P

  sheepluva
a Chaos Developer (crazy'n'lazy),
  Ansprechpartner für deutschsprachige Spieler


sheepluva (at) ercatec.net

nemo
User offline. Last seen 3 hours 35 min ago. Offline
Joined: 01/28/2009
Posts: 1018

Also, if you are changing the engine, please set the protocol version to something other than stable, to avoid confusing players when they fail to join on official server.
set(HEDGEWARS_PROTO_VER 40) in base CMakeLists.txt

Copyright © 2004-2013 Hedgewars Project. All rights reserved.