Data Realms Fan Forums
http://forums.datarealms.com/

ATTN: Attaching Wounds using Lua
http://forums.datarealms.com/viewtopic.php?f=73&t=31880
Page 1 of 1

Author:  CaveCricket48 [ Sat Oct 06, 2012 6:06 pm ]
Post subject:  ATTN: Attaching Wounds using Lua

I forgot to mention this, but there's a new function you guys can play around with in 1.0, which allows you to attach AEmitter wounds onto an MO.

Quote:
AttachEmitter
Attaches an AEmitter to this MOSRotating.

Arguments:
-The AEmitter to attach, ownership IS transferred!
-The offset from the origin of this MOSRotating to where the AEmitter's joint is attached.
-Whether to check if this added emitter triggers the GibWoundLimit.. sometimes that's a bad idea if potentially gibbing this would cause the m_Attachables list to be messed with while it's being iterated.

Return value:
None.

Example:
Code:
actor:AttachEmitter( CreateAEmitter("Wound Flesh Entry") , Vector(20,20) , true );


Now, it says MOSRotating in the documentation, but the function should work for any MO. Keep in mind that because the attached emitter is treated as a wound, weight does not apply, nor does HFlipped.

Author:  Roast Veg [ Sat Oct 06, 2012 6:07 pm ]
Post subject:  Re: ATTN: Attaching Wounds using Lua

Is the MO:Attach function working yet?

Author:  CaveCricket48 [ Sat Oct 06, 2012 6:10 pm ]
Post subject:  Re: ATTN: Attaching Wounds using Lua

Unfortunately not.

Author:  Shook [ Sat Oct 06, 2012 7:13 pm ]
Post subject:  Re: ATTN: Attaching Wounds using Lua

Oooh, very interesting indeed! Been waiting for this since ages ago. This will finally let me do neat flame weapons without a gazillion workarounds to keep them from killing everything in a radius while sticking, even though fire kind of does that in reality. But this ain't reality.

it will also let me shoot people in their face and have angry pandas flow out of the wound

Author:  Awpteamoose [ Sun Oct 07, 2012 1:52 am ]
Post subject:  Re: ATTN: Attaching Wounds using Lua

CaveCricket48 wrote:
Now, it says MOSRotating in the documentation, but the function works for any MO.

Either I'm doing something wrong or this only works on MOSRotating and Actors.

Author:  Arcalane [ Sun Oct 07, 2012 2:15 am ]
Post subject:  Re: ATTN: Attaching Wounds using Lua

Intriguing! Definitely has potential for flamethrowers and such.

Author:  Asklar [ Sun Oct 07, 2012 5:42 pm ]
Post subject:  Re: ATTN: Attaching Wounds using Lua

Wait wait wait wait a second.

This means that I can attach ANY kind of wound into an actor?

As in, now I can create a sniper rifle that creates a HUGE wound in the actor and a pistol that creates a tiny wound? And create special "burn" wounds for flamethrowers and things like that?

This would be obscenely awesome, considering how realism in terms of wounds can be added and finally we can partially get over the balancing weapons damage thing.

EDIT:

The possibilities are endless! Ultra gore guns, guns that implant "eggs" and turns the target into an infested-alien-spawner and much more!

Author:  Arcalane [ Sun Oct 07, 2012 10:18 pm ]
Post subject:  Re: ATTN: Attaching Wounds using Lua

Do consider that applying wounds recklessly with no attention paid to the actor type is a bad idea, though. I mean, imagine shooting a robot with a gun that adds extra bleeding wounds. Suddenly, it's spraying blood everywhere - blood that it doesn't even normally have! Or solely-fleshy actors leaking oil and spraying sparks.

You'd have to use generic wounds. Or maybe find some way of determining the actor's normal entry/exit wound and use that.

Author:  Asklar [ Sun Oct 07, 2012 11:02 pm ]
Post subject:  Re: ATTN: Attaching Wounds using Lua

Or do the typical thing of checking if in the presetname of the actor there is something like "Robot", "Droid", "Dummy", etc.

Man, we need a way to see if the actor is robot or human.



Also, considering we can now add wounds, is there any news on deleting them yet?

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