Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Seat Reference
- @persist [Seats Anims Pos]:table
- if(first())
- {
- Seat = entity():isWeldedTo()
- Model = Seat:model()
- Seats = table(
- "models/nova/airboat_seat.mdl" = "models/nova/airboat_seat.mdl",
- "models/lubprops/seat/raceseat.mdl" = "models/lubprops/seat/raceseat.mdl",
- "models/vehicles/pilot_seat.mdl" = "models/vehicles/pilot_seat.mdl",
- "models/props_phx/carseat2.mdl" = "models/props_phx/carseat2.mdl"
- )
- Anims = table(
- "models/nova/airboat_seat.mdl" = "sit",
- "models/vehicles/pilot_seat.mdl" = "sit",
- "models/lubprops/seat/raceseat.mdl" = "drive_jeep",
- "models/props_phx/carseat2.mdl" = "drive_airboat"
- )
- Pos = table(
- "models/nova/airboat_seat.mdl" = vec(0,0,0),
- "models/lubprops/seat/raceseat.mdl" = vec(0,0,0),
- "models/vehicles/pilot_seat.mdl" = vec(0,0,3),
- "models/props_phx/carseat2.mdl" = vec(0,4.5,-1)
- )
- holoCreate(0)
- holoPos(0,Seat:pos())
- holoAng(0,Seat:angles())
- holoParent(0,Seat)
- holoCreate(1)
- holoModel(1, owner():model())
- holoAng(1, holoEntity(0):toWorld(ang(0,90,0)))
- holoParent(1, holoEntity(0))
- }
- if(Seats[Model, string])
- {
- holoModel(0, Seats[Model, string])
- holoAnim(1, Anims[Model, string])
- holoPos(1, holoEntity(0):toWorld(Pos[Model, vector]))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement