Data Realms Fan Forums http://45.55.195.193/ |
|
Instant dead actor script. http://45.55.195.193/viewtopic.php?f=73&t=21328 |
Page 1 of 1 |
Author: | Shook [ Sat Jan 29, 2011 11:59 pm ] |
Post subject: | Re: Instant dead actor script. |
Other than Actor being capitalized after the if check (which it shouldn't be), it might be because the check isn't getting the actor. Distance is to the center of the actors torso, so if you shoot him in the face or another extremity, it might not reach him, though a shot in the torso would kill any vanilla actor. The code seems functional, so try fixing the capital A first. We all know how rigid CC is about capital letters. |
Author: | akblabla [ Sun Jan 30, 2011 9:57 am ] |
Post subject: | Re: Instant dead actor script. |
If you want it to work on bigger actors you can change this Code: if dist < 10 then to Code: if dist < actor.Diameter*2 then You might want multiply it by 2.5 or 3 instead |
Author: | 411570N3 [ Sun Jan 30, 2011 10:20 am ] |
Post subject: | Re: Instant dead actor script. |
It'd probably be easier to use something like a ray check based on velocity and a findrootmo. That way you'd make it more reliable and also able to work on large actors without oddness cropping up. You can balance it out with additional conditions from there, if you please. |
Author: | Roast Veg [ Mon Jan 31, 2011 1:00 am ] |
Post subject: | Re: Instant dead actor script. |
I would divide by mass instead, otherwise you get rapid health deflation and bigger actors take longer to kill. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |