View unanswered posts | View active topics It is currently Thu Mar 28, 2024 8:30 am



Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
 Need help with a rail gun. 
Author Message
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Need help with a rail gun.
It's probably something to do with the general mass of the actor plus the materials they're made of, versus the sharpness/mass/material/etc. of your own bullet. :???:


Thu Oct 02, 2014 9:40 am
Profile YIM

Joined: Sun Sep 28, 2014 6:04 pm
Posts: 13
Reply with quote
Post Re: Need help with a rail gun.
Well, I thought I had something with dissipate.lua but... SceneMan:CastStrengthRay won't return true for MOs

The material I'm using for the bullet is currently- (Velocity 50, Sharpness 30, Mass 5)
so... I think I should only need a sharpness of like 2?
(1/(VxM))*Structural Integrity(80)*Depth(5) = needed sharpness(1.6). (If I have that right)


-edit-
It looks like I have two more options to try. Removing/changing the "Carrier" LUA so that the pixel is created 20 pixels before impact. (Right now it creates the MOPixel at V4 for a SceneMan:CastObstacleRay which if I understand should be the last position before the ray hits the object.) or using something like...


Now is it possible to get the material an actor is made of through the LUA?

-edit2-
Because I dont really want to bump my own post unless I make a breakthrough...
So I did find out that SceneMan:GetMOIDPixel calls for 2 numbers in a (#,#) format. Im guessing that's Pos.X, and Pos.Y? I think this might be able to get me the material of the pixel... maybe. I'm pretty much throwing myself down dark alleys trying to get this to work at this point.

-edit3-
...And, it just gets me the MOID of what ever pixel it hits. So kinda useful for something. Just not this.

-edit4-
So tried throwing every little thing LUA wise I could think of, will try using an AEmitter instead of LUA and see if it's related to exactly when the MOPixel is created.


Thu Oct 02, 2014 6:35 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page Previous  1, 2

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.086s | 15 Queries | GZIP : Off ]