Home   Help Search Login Register  

Author Topic: Dummy object replacing camcreate  (Read 1049 times)

0 Members and 2 Guests are viewing this topic.

Offline Fragorl

  • Coding Team
  • Former Staff
  • ****
Dummy object replacing camcreate
« on: 13 Nov 2005, 04:05:44 »
Don't know if this idea has wings, or even if it's been thought up before, but since camcreating and createvehicling ammo bypasses eventhandlers, is it feasible to include some dummy object with effects addons (such as ECP) that basically acts as an ammo factory?

For example: someone wants to create a shell, complete with all the ECP bells and whistles. Just camcreating it won't do the job; Extracting the scripts from ECP is one way; although this can be diffcult and/or time consuming, not to mention it effectively replicates code unnecessarily.

Nicer would be simply to run a function that comes with such a mod, which would force some dummy object to fire off a round of the required type. The dummy would of course have all the EHs defined already, and would be equipped with all the usual ammo types, either through the config or simply addweapon'd onto it (much the way a player can fire heat and sabot and so on out of his stomach :)). Obviously the dummy would need to be invisible, or at least made to look invisible, plus the replacement function would be slower to run; some work would need to be done catching the ammunition, slowing it down if need be, and so on. But this would provide a shortcut way of tagging on all of the effects and such, rather than manually by replicating scripts.

As a fairly inexperienced addon maker, I wouldn't know if this idea sounds wrong, but what do people think?