Author Topic: Adding new weapon types  (Read 786 times)

Offline Amneiger

  • Newbie
  • *
  • Posts: 20
    • View Profile
Adding new weapon types
« on: July 18, 2009, 12:13:09 PM »
I just spent some time fiddling around with the GH1 code, and wanted to ask this before I broke anything else.

It looks like that in order to add a new type of weapon and a new type of ammunition for that weapon, I have to modify ghpmacro.txt and ghweapon.pp.  Is there anything else I need to change?  I've been trying to add two new weapon types, each with their own ammunition, but the game insists on calling them Missile Launchers, giving them 0.5 kg, and generating them destroyed.  It's like the game doesn't realize that I'm trying to add a new weapon type.

Here are the entries for ghpmacro.txt that I made:

TechGun <4 6 ?3>
Bow <4 7 ?3>
PowerPack <5 6 ?3>
Arrows <5 7 ?3>

I've also altered the DefaultWeaponName array in ghweapon and added the following lines:

GS_TechGun = 6;
GS_Bow = 7;

Later I'm hoping to create addons for these weapons, which would also seem to involved ghpmacro and ghweapon.

Offline Amneiger

  • Newbie
  • *
  • Posts: 20
    • View Profile
Adding new weapon types
« Reply #1 on: July 24, 2009, 02:35:39 PM »
...Hello?

Offline Snakebit STI

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Adding new weapon types
« Reply #2 on: July 24, 2009, 05:13:00 PM »
Hello.
I did read this but I have barely played GH1 and have no idea how to mod it, so I didn't respond. This may be why no one else has, but I can't speak for them.