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

[ Unachievable ] Mirroring/Changing sprite angle?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-26-2020 , 07:58   [ Unachievable ] Mirroring/Changing sprite angle?
Reply With Quote #1

Is it possible to change the sprite/Mirror angle from right to left?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 12-09-2020 at 14:31.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-26-2020 , 09:37   Re: Changing sprite angle?
Reply With Quote #2

Post your code
redivcram is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-26-2020 , 11:07   Re: Changing sprite angle?
Reply With Quote #3

I don't need a code for a simple question.

You have a env_sprite entity, wondering if it's possible to change the sprite view from right to left .

An example Image




Edit : I think it will be solved if I changed the entity scale to negative. I only need to test and give a feedback.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-26-2020 at 11:23.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-26-2020 , 12:57   Re: Changing sprite angle?
Reply With Quote #4

Scale with a negative value is mirroring so your idea should work, at least in theory.
__________________

Last edited by HamletEagle; 11-26-2020 at 12:57.
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-26-2020 , 18:24   Re: Changing sprite angle?
Reply With Quote #5

an update it doesn't work the sprite gets gigantic when setting the entity scale to -1.0


Test Code
PHP Code:

public clcmd_test(id)
{
    new 
ent create_entity("env_sprite");
    
    new 
Float:fOrigin[3];
    
entity_get_vector(idEV_VEC_originfOrigin);
    
entity_set_origin(entfOrigin);
    
    
entity_set_int(entEV_INT_movetypeMOVETYPE_FLY);
    
entity_set_model(entszModel);
    
entity_set_size(entFloat:{-1.0,-1.0,-1.0}, Float:{1.0,1.0,1.0});
    
    
// Set the animation's framerate
    
set_peventpev_frame0.0 )
    
set_peventpev_framerate0.5 )
    
entity_set_float(entEV_FL_scale, -1.0);
    
set_peventpev_spawnflagsSF_SPRITE_STARTON )
    
    
dllfuncDLLFunc_Spawnent )

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-26-2020 at 18:53.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
JocAnis
Veteran Member
Join Date: Jun 2010
Old 11-26-2020 , 20:54   Re: Changing sprite angle?
Reply With Quote #6

what happens with changing pev_angles?
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-26-2020 , 21:42   Re: Changing sprite angle?
Reply With Quote #7

it doesn't flip like the picture, it rather just rotates around the forward axis
__________________
@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
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-02-2020 , 13:08   Re: Changing sprite angle?
Reply With Quote #8

Bump
__________________
@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
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-08-2020 , 13:25   Re: Changing sprite angle?
Reply With Quote #9

i would appreciate if anyone have a suggestion to the problem.
__________________
@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
JocAnis
Veteran Member
Join Date: Jun 2010
Old 12-08-2020 , 16:52   Re: Changing sprite angle?
Reply With Quote #10

Editing the sprite will be faster solutiom
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis 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 18:57.


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