Where can I find exact files in source?

2 replies [Last post]
Gadzik
User offline. Last seen 12 years 26 weeks ago. Offline
Joined: 2011-10-30
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 1 week 18 hours ago. Offline
Joined: 2009-07-18
Posts: 563

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 <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

nemo
nemo's picture
User offline. Last seen 4 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

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

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]