Data Realms Fan Forums
http://45.55.195.193/

Aim through walls
http://45.55.195.193/viewtopic.php?f=1&t=19117
Page 1 of 1

Author:  woottipat [ Sun Jun 27, 2010 1:44 pm ]
Post subject:  Aim through walls

Is it possible to aim through walls using LUA ? cuz i'm making "Rail Driver" from RF:G

If it possible, can you tell me the code ?

TX

Author:  robolee [ Sun Jun 27, 2010 2:32 pm ]
Post subject:  Re: Aim through walls

I guess it's possible through Lua, but you can't actually make the normal aiming reticle go through walls and that will still affect the camera.

Author:  CaveCricket48 [ Sun Jun 27, 2010 7:20 pm ]
Post subject:  Re: Aim through walls

I had an idea for a zoom extension before, it could apply to this. What I was thinking is that you could use Lua to detect if the target actor is zooming their gun. If they are, then switch their control to an actor that looks like the zooming dots, which will be re-positioned every frame X pixels in front of the target actor's gun. Any control on the "zooming dot" actor will translate to controls being sent to the target actor, making it seem like you are actually zooming. If the player stops pressing the zooming button, the script will be able to detect that and switch control back to the target actor.

Author:  Nocifer [ Mon Jun 28, 2010 12:31 am ]
Post subject:  Re: Aim through walls

This has happened to me during normal play, no doubt as the result of some minor glitch. It's actually not that spectacular; you'd be surprised how much you'd begin to miss the reticule stopping when it hits something solid.

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