Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
No bone_ command works while ent_blendpose #472834
05/25/18 16:52
05/25/18 16:52
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Why is ent_blendpose locking up all other bone functions? I can neither ent_bonereset, nor move or anything at all.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: No bone_ command works while ent_blendpose [Re: alibaba] #472844
05/26/18 01:26
05/26/18 01:26
Joined: Apr 2002
Posts: 1,246
ny
jumpman Offline
Serious User
jumpman  Offline
Serious User

Joined: Apr 2002
Posts: 1,246
ny
Can we see a stripped down version of the relevant code?

Check to see where you place your bone functions in regards to the ent_blendpose. Try placing ent_bonereset/ent_bonemove/etc BEFORE the ent_blendpose and see what happens.

Im currently doing animation states, which is kind of not the best, but it works for me so far. Let me know if this helps:

Code:
while(state_lower==3)
{
			
animsa+=10*time_step;  // one way animation

			
my.pose = 2;   /// set pose 2 to the target animation
				
ent_animate(my, "swing",animsa, ANM_CYCLE);  // upper half of body
ent_animate(my,"ua_stand",animsa,ANM_CYCLE+ANM_ADD); // lower half of body
		
		
my.skill3+=5*time_step  ; // blend percent while in this state
			
my.skill3 = clamp(my.skill3,0,100);  // clamp the blend to 100 percent
			
			
ent_bonerotate();  /////////////your manual bone rotation, ent_bone commands here
			
			          
ent_blendpose(my,1,2,my.skill3);  // perform the blend
      
      

my.pose=1;  /// use this final skeleton state as pose 1
      
      
if(my.skill3>=100)  // when the one way animation is done
{
last_lower_state=2;  //break out of this animation state
state_lower=0;
//break;
}
			
			
wait(1);
}


Re: No bone_ command works while ent_blendpose [Re: jumpman] #472952
06/01/18 18:12
06/01/18 18:12
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Thanks, it kinda works, I had to do a dirty workaround which I found thanks to your code.
My problem was (still kinda is) that when the player dies while blending animation I can't use ragdolls, because it heavily relies on bone functions. What I did is setting pose to 1 and blending back to pose 1, then resetting everything. The downside of this is that the ragdoll now spawns in T-pose, which does not look good.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1