View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:37 pm



Reply to topic  [ 4 posts ] 
 Instant dead actor script. 
Author Message
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post 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.


Sat Jan 29, 2011 11:59 pm
Profile WWW
User avatar

Joined: Wed May 20, 2009 3:10 pm
Posts: 366
Location: Ã…rhus, Denmark
Reply with quote
Post 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


Sun Jan 30, 2011 9:57 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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.


Sun Jan 30, 2011 10:20 am
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Instant dead actor script.
I would divide by mass instead, otherwise you get rapid health deflation and bigger actors take longer to kill.


Mon Jan 31, 2011 1:00 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.151s | 13 Queries | GZIP : Off ]