Raised This Month: $ Target: $400
 0% 

Origins and Planes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-20-2009 , 14:46   Re: Origins and Planes
Reply With Quote #1

Quote:
Originally Posted by Exolent[jNr] View Post
How would I go about taking a player's aim (upon issued command) and then have the vector moved away from the solid planes (world and other entities) so that it has enough space to spawn an entity clearly in the open?
I already have a method of subtracting 16 units from the aim vector, but that won't help in certain situations such as looking at the ground because the entity could still be in the ground.

(stupok, I'm waiting for you )
What about:

When the command is issued, you hook traceline, you change it to be at a point always equally distant from you at a predefined distance. You spawn the entity to that point and if it touches you add a visual information like changing it's color to red, if it doesn't touch you add a visual information like changing it's color to green. When the command ends, you will then check if the last position was "spawnable".
__________________
joaquimandrade is offline
Reply



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 01:36.


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