Raised This Month: $32 Target: $400
 8% 

How to make a circle sprite follow the player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-01-2018 , 06:08   How to make a circle sprite follow the player
Reply With Quote #1

Is it possible to set TE_BEAMCYLINDER to follow the player?

PHP Code:
new Spr_Ring 
PHP Code:
Spr_Ring precache_model("sprites/shockwave.spr"
PHP Code:
public radiation_stuff(id)
{
        if(!
is_user_alive(id) || !is_user_zombie(id)) 
        { 
                
remove_task(id)
                return
        }

        static 
Float:origin[3
        
pev(idpev_originorigin

        
ring(origin)     

PHP Code:
public ring(const Float:origin[3]) 


    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0
    
write_byte(TE_BEAMCYLINDER// TE id 
    
engfunc(EngFunc_WriteCoordorigin[0]) // x 
    
engfunc(EngFunc_WriteCoordorigin[1]) // y 
    
engfunc(EngFunc_WriteCoordorigin[2]) // z 
    
engfunc(EngFunc_WriteCoordorigin[0]) // x axis 
    
engfunc(EngFunc_WriteCoordorigin[1]) // y axis 
    
engfunc(EngFunc_WriteCoordorigin[2] + 110)  
    
write_short(Spr_Ring// sprite 
    
write_byte(50// startframe 
    
write_byte(50// framerate 
    
write_byte(10// life 
    
write_byte(3// width 
    
write_byte(0// noise 
    
write_byte(0// red 
    
write_byte(150// green 
    
write_byte(0// blue 
    
write_byte(250// brightness 
    
write_byte(0// speed 
    
message_end() 

Krtola is offline
Send a message via Skype™ to Krtola
E1_531G
Senior Member
Join Date: Dec 2017
Old 11-01-2018 , 09:11   Re: How to make a circle sprite follow the player
Reply With Quote #2

TE_ are only visual effects.
You should recreate your TE_ every 0.X second on new player's position. (with task or thinker)
__________________
My English is A0
E1_531G is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-01-2018 , 16:32   Re: How to make a circle sprite follow the player
Reply With Quote #3

Or create an entity with circle sprite and make it attached to the player by changing the movetype to follow and pev_aiment to player index.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-06-2018 , 05:00   Re: How to make a circle sprite follow the player
Reply With Quote #4

Does anyone have .sma file of KF Siren Zombie Class from ZP mod?

This class has an sprites effect that I need.
Krtola is offline
Send a message via Skype™ to Krtola
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 11-06-2018 , 06:48   Re: How to make a circle sprite follow the player
Reply With Quote #5

Quote:
Originally Posted by Krtola View Post
Does anyone have .sma file of KF Siren Zombie Class from ZP mod?

This class has an sprites effect that I need.
Attached Files
File Type: sma Get Plugin or Get Source (zp_zclass_siren.sma - 431 views - 19.0 KB)
__________________


Quote:
Originally Posted by fysiks View Post
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.
https://iceeedr.com.br/

Last edited by iceeedr; 11-06-2018 at 06:50.
iceeedr is offline
Send a message via Skype™ to iceeedr
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 11-06-2018 , 12:41   Re: How to make a circle sprite follow the player
Reply With Quote #6

Thank you.

Mission Impossible to find this class for download.
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video below to see blind grenade for zombies

https://www.youtube.com/watch?v=ORC7ZmoaipQ

Look at the video below to see Zombie Hide And Seek mode

https://www.youtube.com/watch?v=xpyYb65EgGs
Krtola is offline
Send a message via Skype™ to Krtola
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 13:53.


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