new post | browse code | authors | help | about

LuaBin 2.0

Viewing file root / lua / autorun / base_vehicles.lua

  1.  
  2. //
  3. // Don't try to edit this file if you're trying to add new vehicles
  4. // Just make a new file and copy the format below.
  5. //
  6.  
  7. local Category = "Half-Life 2"
  8.  
  9. //
  10. //
  11. local function HandleRollercoasterAnimation( vehicle, player )
  12.         return player:SelectWeightedSequence( ACT_GMOD_SIT_ROLLERCOASTER )
  13. end
  14.  
  15. local V = {    
  16.                                 // Required information
  17.                                 Name = "Jeep",
  18.                                 Class = "prop_vehicle_jeep_old",
  19.                                 Category = Category,
  20.  
  21.                                 // Optional information
  22.                                 Author = "VALVe",
  23.                                 Information = "The regular old jeep",
  24.                                 Model = "models/buggy.mdl",
  25.                                
  26.                                 KeyValues = {
  27.                                                                 vehiclescript   =       "scripts/vehicles/jeep_test.txt"
  28.                                                         }
  29.                         }
  30.  
  31. list.Set( "Vehicles", "Jeep", V )
  32.  
  33. local V = {    
  34.                                 // Required information
  35.                                 Name = "Airboat",
  36.                                 Class = "prop_vehicle_airboat",
  37.                                 Category = Category,
  38.  
  39.                                 // Optional information
  40.                                 Author = "VALVe",
  41.                                 Information = "Airboat from Half-Life 2",
  42.                                 Model = "models/airboat.mdl",
  43.                                
  44.                                 KeyValues = {
  45.                                                                 vehiclescript   =       "scripts/vehicles/airboat.txt"
  46.                                                         }
  47.                         }
  48.  
  49. list.Set( "Vehicles", "Airboat", V )
  50.  
  51.  
  52. local V = {    
  53.                                 // Required information
  54.                                 Name = "Pod",
  55.                                 Class = "prop_vehicle_prisoner_pod",
  56.                                 Category = Category,
  57.  
  58.                                 // Optional information
  59.                                 Author = "VALVe",
  60.                                 Information = "The Prisoner Pod",
  61.                                 Model = "models/vehicles/prisoner_pod_inner.mdl",
  62.                                
  63.                                 KeyValues = {
  64.                                                                 vehiclescript   =       "scripts/vehicles/prisoner_pod.txt",
  65.                                                                 limitview               =       "0"
  66.                                                         }
  67.                         }
  68.  
  69. list.Set( "Vehicles", "Pod", V )
  70.  
  71. local V = {    
  72.                                 // Required information
  73.                                 Name = "Wooden Chair",
  74.                                 Class = "prop_vehicle_prisoner_pod",
  75.                                 Category = Category,
  76.  
  77.                                 // Optional information
  78.                                 Author = "VALVe",
  79.                                 Information = "A Wooden Chair",
  80.                                 Model = "models/nova/chair_wood01.mdl",
  81.                                 KeyValues = {
  82.                                                                 vehiclescript   =       "scripts/vehicles/prisoner_pod.txt",
  83.                                                                 limitview               =       "0"
  84.                                                         },
  85.                                                        
  86.                                 Members = {
  87.                                                                 HandleAnimation = HandleRollercoasterAnimation,
  88.                                                         }
  89.                         }
  90. list.Set( "Vehicles", "Chair_Wood", V )
  91.  
  92. local V = {    
  93.                                 // Required information
  94.                                 Name = "Chair",
  95.                                 Class = "prop_vehicle_prisoner_pod",
  96.                                 Category = Category,
  97.  
  98.                                 // Optional information
  99.                                 Author = "VALVe",
  100.                                 Information = "A Plastic Chair",
  101.                                 Model = "models/nova/chair_plastic01.mdl",
  102.                                 KeyValues = {
  103.                                                                 vehiclescript   =       "scripts/vehicles/prisoner_pod.txt",
  104.                                                                 limitview               =       "0"
  105.                                                         },
  106.                                 Members = {
  107.                                                                 HandleAnimation = HandleRollercoasterAnimation,
  108.                                                         }
  109. }
  110. list.Set( "Vehicles", "Chair_Plastic", V )
  111.  
  112. local V = {    
  113.                                 // Required information
  114.                                 Name = "Chair",
  115.                                 Class = "prop_vehicle_prisoner_pod",
  116.                                 Category = Category,
  117.  
  118.                                 // Optional information
  119.                                 Author = "VALVe",
  120.                                 Information = "A Plastic Chair",
  121.                                 Model = "models/nova/chair_plastic01.mdl",
  122.                                 KeyValues = {
  123.                                                                 vehiclescript   =       "scripts/vehicles/prisoner_pod.txt",
  124.                                                                 limitview               =       "0"
  125.                                                         },
  126.                                 Members = {
  127.                                                                 HandleAnimation = HandleRollercoasterAnimation,
  128.                                                         }
  129. }
  130. list.Set( "Vehicles", "Chair_Plastic", V )
  131.  
  132. local V = {    
  133.                                 // Required information
  134.                                 Name = "Jeep Seat",
  135.                                 Class = "prop_vehicle_prisoner_pod",
  136.                                 Category = Category,
  137.  
  138.                                 // Optional information
  139.                                 Author = "VALVe",
  140.                                 Information = "A Seat from VALVe's Jeep",
  141.                                 Model = "models/nova/jeep_seat.mdl",
  142.                                 KeyValues = {
  143.                                                                 vehiclescript   =       "scripts/vehicles/prisoner_pod.txt",
  144.                                                                 limitview               =       "0"
  145.                                                         },
  146.                                 Members = {
  147.                                                                 HandleAnimation = HandleRollercoasterAnimation,
  148.                                                         }
  149. }
  150. list.Set( "Vehicles", "Seat_Jeep", V )
  151.  
  152. local V = {    
  153.                                 // Required information
  154.                                 Name = "Airboat Seat",
  155.                                 Class = "prop_vehicle_prisoner_pod",
  156.                                 Category = Category,
  157.  
  158.                                 // Optional information
  159.                                 Author = "VALVe",
  160.                                 Information = "A Seat from VALVe's Airboat",
  161.                                 Model = "models/nova/airboat_seat.mdl",
  162.                                 KeyValues = {
  163.                                                                 vehiclescript   =       "scripts/vehicles/prisoner_pod.txt",
  164.                                                                 limitview               =       "0"
  165.                                                         },
  166.                                 Members = {
  167.                                                                 HandleAnimation = HandleRollercoasterAnimation,
  168.                                                         }
  169. }
  170. list.Set( "Vehicles", "Seat_Airboat", V )
  171.  
  172. local V = {    
  173.                                 // Required information
  174.                                 Name = "Office Chair",
  175.                                 Class = "prop_vehicle_prisoner_pod",
  176.                                 Category = Category,
  177.  
  178.                                 // Optional information
  179.                                 Author = "VALVe",
  180.                                 Information = "A Small Office Chair",
  181.                                 Model = "models/nova/chair_office01.mdl",
  182.                                 KeyValues = {
  183.                                                                 vehiclescript   =       "scripts/vehicles/prisoner_pod.txt",
  184.                                                                 limitview               =       "0"
  185.                                                         },
  186.                                 Members = {
  187.                                                                 HandleAnimation = HandleRollercoasterAnimation,
  188.                                                         }
  189. }
  190. list.Set( "Vehicles", "Chair_Office1", V )
  191.  
  192. local V = {    
  193.                                 // Required information
  194.                                 Name = "Office Chair",
  195.                                 Class = "prop_vehicle_prisoner_pod",
  196.                                 Category = Category,
  197.  
  198.                                 // Optional information
  199.                                 Author = "VALVe",
  200.                                 Information = "A Big Office Chair",
  201.                                 Model = "models/nova/chair_office02.mdl",
  202.                                 KeyValues = {
  203.                                                                 vehiclescript   =       "scripts/vehicles/prisoner_pod.txt",
  204.                                                                 limitview               =       "0"
  205.                                                         },
  206.                                 Members = {
  207.                                                                 HandleAnimation = HandleRollercoasterAnimation,
  208.                                                         }
  209. }
  210. list.Set( "Vehicles", "Chair_Office2", V )