Raised This Month: $ Target: $400
 0% 

NPC Duck problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-14-2018 , 17:54   Re: NPC Duck problem
Reply With Quote #1

Try with entity_set_size instead.
__________________








CrazY. is offline
spamipolito
Junior Member
Join Date: Jun 2018
Old 06-14-2018 , 18:43   Re: NPC Duck problem
Reply With Quote #2

Quote:
Originally Posted by CrazY. View Post
Try with entity_set_size instead.
No bro :/ . I already testing with entity_set_size :/. Anyway, i tried again.

This result:

Use this code in case ACTIVITY_DUCK:

PHP Code:
            new Float:vecMins[3];
            new 
Float:vecMax[3];
            
//new Float:VecSize[3]
    
            
vecMins Float:{-16.0, -16.0, -32.0};
            
vecMax Float:{16.016.018.0};
            
//VecSize = Float:{32.0, 32.0, 50.0};
    
            
entity_set_size(iEntvecMinsvecMax);
    
            
entity_set_vector(iEntEV_VEC_minsvecMins);
            
entity_set_vector(iEntEV_VEC_maxsvecMax); 
And case ACTIVITY_STAND:

PHP Code:
            new Float:vecMins[3];
            new 
Float:vecMax[3];
           
// new Float:VecSize[3]
    
            
vecMins Float:{-16.0, -16.0, -36.0};
            
vecMax Float:{16.016.036.0};
            
//VecSize = Float:{32.0, 32.0, 72.0};
    
            
entity_set_size(iEntvecMinsvecMax);
    
            
entity_set_vector(iEntEV_VEC_minsvecMins);
            
entity_set_vector(iEntEV_VEC_maxsvecMax); 
This result:

Ducking:



Standing up:
spamipolito is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-14-2018 , 20:09   Re: NPC Duck problem
Reply With Quote #3

Quote:
Originally Posted by spamipolito View Post
No bro :/ . I already testing with entity_set_size :/. Anyway, i tried again.

This result:

Use this code in case ACTIVITY_DUCK:

PHP Code:
            new Float:vecMins[3];
            new 
Float:vecMax[3];
            
//new Float:VecSize[3]
    
            
vecMins Float:{-16.0, -16.0, -32.0};
            
vecMax Float:{16.016.018.0};
            
//VecSize = Float:{32.0, 32.0, 50.0};
    
            
entity_set_size(iEntvecMinsvecMax);
    
            
entity_set_vector(iEntEV_VEC_minsvecMins);
            
entity_set_vector(iEntEV_VEC_maxsvecMax); 
Didnt i told you to not change the mins of z vector, mins ducking should be equal to the mins of the standing position.

It shouldbe

vecMins = Float:{-16.0, -16.0, -36.0};
vecMax = Float:{16.0, 16.0, 16.0};
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-14-2018 at 20:15.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 04:40.


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