Advertisement
Guest User

stuff

a guest
Jan 18th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. Human.inc
  2.  
  3. {on spawn
  4. {add_view "skeleton" "skel" "blagh"}{view hide "skel"}{view stop "skel"} ;{bone "blagh"} in human.mdl file
  5.  
  6. ;We need to give a new bone "blagh" to the human.mdl file, since blagh isn't located within the brackets of the bone "basis"
  7. ;that way when we hide basis and every bone within the bracket of basis is hidden as a result, the bone "blagh" still remains.
  8. ;and since its still there, the view for the bone "blagh" doesn't disappear.
  9. ;this adds new possibilities of having different meshes for humanskins, will expand
  10. {on "die"
  11.  
  12. {delay 5
  13. {if dead
  14. (define "ts"
  15. {delay %1
  16. {bone hide "%0"}
  17. ("str" text(hiding %0))
  18. {view show "skel"}{view start "skel"}("str" text(show view))
  19. })
  20. ("ts" args basis 0)
  21. }}
  22.  
  23.  
  24.  
  25. Human.mdl
  26. {Skeleton
  27. {extension "/properties/animation/human/human_anm.ext"}
  28. {bone "blagh"};;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;is outside the brackets of basis
  29. {bone revolute "basis"
  30. {limits -30 30}
  31. {speed 0.1}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement