Back to the Vavoom Forum Archives


Forum

Adding custom weapons ?

Tue, 06 Jan 2004 04:52:10

robvoom

Hi there,<br><br>Just want to say Vavoom is still cool and promising port.  ;D<br><br>Also i'm triyng to add some weapons : wonderful to see a language similar to c respect to ddf or similar but i have problems to figure out gerarchy on files.<br><br>How many files i have to modify for adding a new weapon (not replacing existing ones).<br><br>I've tried adding something but the vcc compiler always came out with : 'Missing defaultproperties for WeaponChaingun2'<br><br>So it seems i have to add 'defaultproperties' somewhere (not only in the 'weaponMyWeaponName.vc'?)<br><br>Bye and thanks for this port,<br>Rob <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Tue, 06 Jan 2004 16:49:57

Janis Legzdinsh

Maybe you forgot to do an #include in classes.vc file.
Tue, 06 Jan 2004 19:58:10

robvoom

Hi Janis,<br>Yes probably the error was there  ;)<br><br>Thanks for the reply (and Vavoom of course). If i came out with something uselful i will post here in.<br><br>Bye,<br>Rob
Fri, 09 Jan 2004 02:17:35

robvoom

Hi i've added the new weapon  ;D<br><br>The only thing i'm missing i how to add sequentially on (for example) the pistol (key 2) were i have to add this code ?<br><br>At this stage i'm only adding the weapon in doomdefs.vc<br>enum<br>{<br>      wp_fist,<br>      wp_pistol,<br>                wp_m16, // my weapon<br>      wp_shotgun,<br>....<br><br>But then the shotgun is not there ?<br><br>Any idea<br><br>Bye,<br>Rob<br><br>(maybe i will wrote a brief tutorial on how to add a weapon after i will be succesful)
Fri, 09 Jan 2004 16:36:12

Janis Legzdinsh

You should add it to the end of the list. Then modify function ChangeWeapon (in wpnbase.vc) and do like super shotgun or grenade launcher does.<br><br>Basicly the best way to see how to add a new weapon is to see how grenade launcher is added, just search for all appearences of GRENADE_LAUNCHER.
Sun, 11 Jan 2004 20:09:45

robvoom

Thanks Janis  ;)<br><br>Your support is much appreciated.<br><br>I will wrote a brief tutorial and i will post here.<br><br>Bye Thanks,<br>Rob
Mon, 12 Jan 2004 17:02:05

Janis Legzdinsh

I got your tutorial. I will add it to the tutorials section soon.
Mon, 05 Apr 2004 00:21:42

gunrock

could you send the tutorial to me? i would love to take a look at it, Because i'm also working on adding some <br>new weapons to my upcoming project.<br><br>email:   <!-- e --><a href="mailto:moonscrapper@aol.com">moonscrapper@aol.com</a><!-- e --><br><br>thanks! ;D
Mon, 05 Apr 2004 04:07:57

moose

It's on the tutorials section of the Vavoom site, but it's on the same line as the one above it, so it's a little harder to notice.
Mon, 05 Apr 2004 16:44:27

Janis Legzdinsh

Fixed that.

Back to the Vavoom Forum Archives