Advertisement
Guest User

Improved Skeleton Code(with descriptions)

a guest
Jan 18th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. game.pak/resource/set/interaction_entity/human.inc
  2.  
  3. {on spawn
  4. ;filename;nickname;bonename
  5. {add_view "skeleton" "skel" "basis"}{view hide "skel"}{view stop "skel"}
  6. ;have to hide and stop the view, otherwise it will stay on the unit.
  7. ;you can replace "skeleton" and put a humanskin like rus-smg and it will be rus-smg, or worker and he will be the worker skin
  8. ;this must be at the beginning of "{on spawn" with no delays to prevent crashing.
  9. }
  10. {on "die"
  11.  
  12. {delay 5 ;Bam
  13. {if dead
  14. (define "ts"
  15. {delay %1
  16. {view show "skel"}{view start "skel"}{damage_report "body" "<s(0.1)c(ffffff)> showing skeleton"}
  17. {delay 5 {bone hide "%0"}{damage_report "body" "<s(0.1)c(ffffff)> hiding %0"}}
  18. }) ;%0 ;%1 (%2 if I were to add anything after 0(%1))
  19. ("ts" args skin 0) ;we are going to use a define to make things more simple and lessen the lines of code
  20. ;("ts" args otherbone 0) you copy and paste to hide other bone names
  21. }}
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement