Raised This Month: $ Target: $400
 0% 

how to make a model seeker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
turbex
Junior Member
Join Date: Jan 2007
Old 04-23-2007 , 02:36   how to make a model seeker
Reply With Quote #1

well....
this is my question...
how to make a model seeker... for example...
create a model... ("misil") and this model seek a player... and... when touch the player... make a effect "explosion" and the touched player lost few health...

please... awnser me...
thanks!!!!!
turbex is offline
pRED*
Join Date: Dec 2006
Old 04-23-2007 , 03:34   Re: how to make a model seeker
Reply With Quote #2

It's not a quick and easy topic to give you an answer on..

Have a look at the amx_apache plugin for some code examples creating and firing missile entities and making them explode when the hit them.

The client_PreThink and pfn_Touch functions are where you should be looking..

I'm not sure about making it aim at a player..

I guess in the PreThink function you would want to find the closest enemy player and trace a line to them? and find the angle required to move towards them and set that for your missile..
pRED* is offline
turbex
Junior Member
Join Date: Jan 2007
Old 04-23-2007 , 09:15   Re: how to make a model seeker
Reply With Quote #3

ok.... thanks man
turbex is offline
turbex
Junior Member
Join Date: Jan 2007
Old 04-24-2007 , 02:01   Re: how to make a model seeker
Reply With Quote #4

sorry for the duoble post...

but... other suggestion for my question???

thanks
turbex is offline
Reply


Thread Tools
Display Modes

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 06:46.


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