Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isnew)
- {
- // make the skeleton
- self.skeletonobject = skel_create(self.modelindex);
- PrintAnimInfo(self);
- PrintSkelInfo(self);
- self.predraw = PlayerPredraw;
- }
- if(global_float > 360)
- global_float = 0;
- else
- global_float+= 1;
- vector a_vec;
- a_vec_y = global_float;
- // change the bones orientation
- skel_set_bone_world (self, skel_find_bone (self.skeletonobject, "Head"), a_vec, '1 1 1');
- int print_info_every_frame = 0;
- // diagnostics
- if(print_info_every_frame)
- {
- vector current_head_position = skel_get_bonerel(self.skeletonobject, 24);
- print("Heads position is ", vtos(current_head_position), " (", ftos(global_float), ")\n");
- // just prints (excerpt):
- Heads position is '0.000000 0.000000 0.000000' (309)
- Heads position is '0.000000 0.000000 0.000000' (310)
- Heads position is '0.000000 0.000000 0.000000' (311)
- Heads position is '0.000000 0.000000 0.000000' (312)
- Heads position is '0.000000 0.000000 0.000000' (313)
- Heads position is '0.000000 0.000000 0.000000' (314)
- Heads position is '0.000000 0.000000 0.000000' (315)
- Heads position is '0.000000 0.000000 0.000000' (316)
- Heads position is '0.000000 0.000000 0.000000' (317)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement