Raised This Month: $51 Target: $400
 12% 

Solved Select sprite frame


Post New Thread Reply   
 
Thread Tools Display Modes
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-02-2018 , 07:23   Re: Select sprite frame
Reply With Quote #21

Quote:
Originally Posted by Ghosted View Post
He wants to set scale/frame of the sprite entity that is above player head, you said to use TE_PLAYERATTACHMENT and pev_scale/pev_frame and i'm asking how is it possible to use both together.
Is he creating an entity? Then he can use find_ent_by_class on the entity?
__________________
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-02-2018 , 07:32   Re: Select sprite frame
Reply With Quote #22

Quote:
Originally Posted by edon1337 View Post
Is he creating an entity? Then he can use find_ent_by_class on the entity?
If you said to use TE_PLAYERATTACHMENT, why are you asking about an entity now?
__________________
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-02-2018 , 08:52   Re: Select sprite frame
Reply With Quote #23

Quote:
Originally Posted by edon1337 View Post
Is he creating an entity? Then he can use find_ent_by_class on the entity?
Why he needs to search for the entity index when he already has its 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
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 09-02-2018 , 09:03   Re: Select sprite frame
Reply With Quote #24

Instead of think, test with MOVETYPE_FOLLOW and pev_aiment/EV_ENT_aiment.
__________________








CrazY. is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-02-2018 , 09:14   Re: Select sprite frame
Reply With Quote #25

Quote:
Originally Posted by CrazY. View Post
Instead of think, test with MOVETYPE_FOLLOW and pev_aiment/EV_ENT_aiment.
He probably still need to use think to raise it above the head.
__________________
@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
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 09-02-2018 , 09:25   Re: Select sprite frame
Reply With Quote #26

Quote:
Originally Posted by CrazY. View Post
Instead of think, test with MOVETYPE_FOLLOW and pev_aiment/EV_ENT_aiment.
I did that at first, but you can't change aiment position
__________________
Airkish is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-02-2018 , 09:52   Re: Select sprite frame
Reply With Quote #27

Quote:
Originally Posted by Airkish View Post
I did that at first, but you can't change aiment position
Here check this.

https://forums.alliedmods.net/showpo...3&postcount=16
__________________
@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
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 09-02-2018 , 09:57   Re: Select sprite frame
Reply With Quote #28

Quote:
Originally Posted by Natsheh View Post
I don't see you using aiment in that code.
Btw it's solved.
__________________
Airkish is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-02-2018 , 10:29   Re: Select sprite frame
Reply With Quote #29

Quote:
Originally Posted by Airkish View Post
I don't see you using aiment in that code.
Btw it's solved.
Exactly its useless.

If you have sprites/models designed to be attached on the player then its not useless.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-02-2018 at 10:32.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 09-02-2018 , 13:09   Re: Select sprite frame
Reply With Quote #30

Quote:
Originally Posted by HamletEagle View Post
If you said to use TE_PLAYERATTACHMENT, why are you asking about an entity now?
Because he wants to use pev_scale and pev_frame on the entity?

Quote:
Originally Posted by Natsheh View Post
Why he needs to search for the entity index when he already has its index.
Where?
__________________
edon1337 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 12:08.


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