Raised This Month: $ Target: $400
 0% 

Problem with entity & aim


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-16-2009 , 07:54   Problem with entity & aim
Reply With Quote #1

I created an entity and detect touch, detect if the player is aiming at the ent but is not solid and does nothing.

Someone has a solution?

Thanks in advance
__________________
alan_el_more is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-16-2009 , 08:49   Re: Problem with entity & aim
Reply With Quote #2

code? & u can test ur functions if they works by printing a text. example:

if(player aims on xxx)
client_print(id,print_chat,"ok this function works")
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-16-2009 , 09:00   Re: Problem with entity & aim
Reply With Quote #3

Quote:
Originally Posted by One View Post
code? & u can test ur functions if they works by printing a text. example:

if(player aims on xxx)
client_print(id,print_chat,"ok this function works")
I did & not work.

Code of touch:

PHP Code:
new body
get_user_aiming
(touchertouchedbody)
        
new 
classname[32]
pev(touchedpev_classnameclassnamesizeof(classname)-1)
        
if (
equali(classnameentclas))
{
        
client_print(toucherprint_chat"Aiming :D")

__________________
alan_el_more is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 08-16-2009 , 09:07   Re: Problem with entity & aim
Reply With Quote #4

If the ent isn't solid you can't touch it, grab it etc.
Jon is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-16-2009 , 09:36   Re: Problem with entity & aim
Reply With Quote #5

Quote:
Originally Posted by Jon View Post
If the ent isn't solid you can't touch it, grab it etc.
f*ck
__________________
alan_el_more is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 08-16-2009 , 09:56   Re: Problem with entity & aim
Reply With Quote #6

Quote:
Originally Posted by alan_el_more View Post
f*ck
But, you can detect aimings to it with tracemodel
__________________
joaquimandrade is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 08-16-2009 , 10:06   Re: Problem with entity & aim
Reply With Quote #7

Quote:
Originally Posted by joaquimandrade View Post
But, you can detect aimings to it with tracemodel
how?
__________________
alan_el_more is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 08-16-2009 , 13:42   Re: Problem with entity & aim
Reply With Quote #8

Quote:
Originally Posted by alan_el_more View Post
how?
Check the plugin "Shoot Grenades"
__________________
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 15:01.


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