Raised This Month: $ Target: $400
 0% 

[SOLVED?]Laser Beam - How to block it when it hits an object or entity?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
CodeMaster
Junior Member
Join Date: Dec 2008
Old 12-22-2008 , 15:04   [SOLVED?]Laser Beam - How to block it when it hits an object or entity?
Reply With Quote #1

First of all I'd like to say hi to the community since this is my first post.
I have quite experience in Pawn (SA-MP coding), but I'm not familiar with AMXModX reference and functionality.

I'm interested how could I stop laser beam from passing other entities and objects, so it'd be like a laser aim for some weapons. So all things I'd like to ask would be:
  1. How to make beam to stop on solids (pev_solid? Get end origin some how - the one that's at the solid?)
  2. How to make it be more "sustained" - to do TraceLine events faster?
  3. How to make it go from the top of the weapon barrel, 'cause I've noticed that it actually starts from player's eyes
Thanks in advance

Nidza

Last edited by CodeMaster; 12-23-2008 at 13:50. Reason: Solved some stuff
CodeMaster is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode