Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. @name Seat Reference
  2. @persist [Seats Anims Pos]:table
  3. if(first())
  4. {
  5. Seat = entity():isWeldedTo()
  6. Model = Seat:model()
  7.  
  8. Seats = table(
  9. "models/nova/airboat_seat.mdl" = "models/nova/airboat_seat.mdl",
  10. "models/lubprops/seat/raceseat.mdl" = "models/lubprops/seat/raceseat.mdl",
  11. "models/vehicles/pilot_seat.mdl" = "models/vehicles/pilot_seat.mdl",
  12. "models/props_phx/carseat2.mdl" = "models/props_phx/carseat2.mdl"
  13. )
  14. Anims = table(
  15. "models/nova/airboat_seat.mdl" = "sit",
  16. "models/vehicles/pilot_seat.mdl" = "sit",
  17. "models/lubprops/seat/raceseat.mdl" = "drive_jeep",
  18. "models/props_phx/carseat2.mdl" = "drive_airboat"
  19. )
  20. Pos = table(
  21. "models/nova/airboat_seat.mdl" = vec(0,0,0),
  22. "models/lubprops/seat/raceseat.mdl" = vec(0,0,0),
  23. "models/vehicles/pilot_seat.mdl" = vec(0,0,3),
  24. "models/props_phx/carseat2.mdl" = vec(0,4.5,-1)
  25. )
  26.  
  27.  
  28. holoCreate(0)
  29. holoPos(0,Seat:pos())
  30. holoAng(0,Seat:angles())
  31. holoParent(0,Seat)
  32.  
  33. holoCreate(1)
  34. holoModel(1, owner():model())
  35. holoAng(1, holoEntity(0):toWorld(ang(0,90,0)))
  36. holoParent(1, holoEntity(0))
  37.  
  38.  
  39. }
  40.  
  41. if(Seats[Model, string])
  42. {
  43. holoModel(0, Seats[Model, string])
  44. holoAnim(1, Anims[Model, string])
  45. holoPos(1, holoEntity(0):toWorld(Pos[Model, vector]))
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement