Data Realms Fan Forums
http://45.55.195.193/

Mechwarrior weapons
http://45.55.195.193/viewtopic.php?f=73&t=16577
Page 1 of 1

Author:  Duh102 [ Sat Sep 19, 2009 5:47 pm ]
Post subject:  Mechwarrior weapons

Mechwarrior mod lives. I need some help on the weapons. Several things, in fact.

-Is there a way to attach ACrabs or just Actors to the mech such that they fire when the player presses fire with the actual mech actor selected, and only then? Optimally, the player should be able to use each weapon individually, then press a key to use alpha strike.

-How would one go about adding a heat system to such a setup?

Author:  Roon3 [ Sat Sep 19, 2009 5:55 pm ]
Post subject:  Re: Mechwarrior weapons

Duh102 wrote:
-Is there a way to attach ACrabs or just Actors to the mech such that they fire when the player presses fire with the actual mech actor selected, and only then? Optimally, the player should be able to use each weapon individually, then press a key to use alpha strike.

Check if the mech is controlled by the player, and then set the ACrab to controller.CIM_PLAYER.

Author:  Geti [ Sun Sep 20, 2009 8:30 am ]
Post subject:  Re: Mechwarrior weapons

what does the heat system require? like, overheating?
if so, you'd just need to make it so firing a weapon adds to an internal value, and then when that value is too high, disable the actor's controller from activating WEAPON_FIRE.

for the attached crabs, you'll want to disable the controller, preferably manually (like, disable all the states of the controller), and make it mirror the mech's controller, and aimangle.

Author:  411570N3 [ Sun Sep 20, 2009 9:59 am ]
Post subject:  Re: Mechwarrior weapons

You'll also want to have the main mech auto-selected whenever the crabs are, to prevent accidentally selecting the crabs and not being able to do anything when you were trying to select the mech.

Author:  Roon3 [ Sun Sep 20, 2009 10:13 am ]
Post subject:  Re: Mechwarrior weapons

Doing this raises a few other problems, such as trying to select an actor next to the mech, selecting the ACrab which makes you select the mech. Just keep them on team -1 or something.

Author:  Duh102 [ Thu Sep 24, 2009 5:55 pm ]
Post subject:  Re: Mechwarrior weapons

Just wanna say, piipu is amazing.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/