Barrel reproduction?
Posted: Sun Sep 11, 2005 7:23 pm
umh i dug up this old thing:
burshmodel land
and i used it in my script and i cant seem to get it to work.. heres my script:
and heres my qconsole log:
i made a barrel out of patches, turned it into a script_object and targetnamed it "Gas_mother".... what am i doing wrong?
burshmodel land
and i used it in my script and i cant seem to get it to work.. heres my script:
Code: Select all
local.barrel1 = spawn BarrelObject "targetname" "barrel1" "model" "$Gas_Mother.brushmodel"
local.barrel2 = spawn BarrelObject "targetname" "barrel2" "model" "$Gas_Mother.brushmodel"
local.barrel3 = spawn BarrelObject "targetname" "barrel3" "model" "$Gas_Mother.brushmodel"
local.barrel4 = spawn BarrelObject "targetname" "barrel4" "model" "$Gas_Mother.brushmodel"
local.barrel5 = spawn BarrelObject "targetname" "barrel5" "model" "$Gas_Mother.brushmodel"
local.barrel6 = spawn BarrelObject "targetname" "barrel6" "model" "$Gas_Mother.brushmodel"
local.fxtruck = spawn fx/tankboom
local.fx = spawn models/fx/barrel_gas_destroyed
local.fx2 = spawn models/fx/barrel_gas_destroyed
local.fx3 = spawn models/fx/barrel_gas_destroyed
local.fx4 = spawn models/fx/barrel_gas_destroyed
local.fx5 = spawn models/fx/barrel_gas_destroyed
local.fx6 = spawn models/fx/barrel_gas_destroyed
local.fxtruck glue $trucky
local.fx glue $barrel1
local.fx glue $barrel2
local.fx glue $barrel3
local.fx glue $barrel4
local.fx glue $barrel5
local.fx glue $barrel6
local.truck = spawn vehicles/opeltruckgreen.tik "trucky"
local.truck.origin = $truckspawn.origin
local.truck.angles = (0.00 90.00 0.00)
local.truck attachpassengerslot 1 $barrel1
local.truck attachpassengerslot 2 $barrel2
local.truck attachpassengerslot 3 $barrel3
local.truck attachpassengerslot 4 $barrel4
local.truck attachpassengerslot 5 $barrel5
local.truck attachpassengerslot 6 $barrel6
local.trig = spawn trigger_multiple "health" "1000" "spawnflags" "128" "setthread" "maps/minigames/DYC2/tanx.scr::killmrtruck"
local.trig setsize ( -128 -128 -128 ) ( 128 128 128 )
local.trig glue local.truck
local.guy = spawn human/german_winter_type1.tik "targetname" "trucker" "testanim" "opel_driver"
local.guy ai_off
local.truck attachdriverslot local.guyCode: Select all
^~^~^ Can't find models/$gas_mother.brushmodel
Tiki:LoadFile Couldn't load models/$gas_mother.brushmodel
^~^~^ Bad model name '$Gas_Mother.brushmodel'
local.barrel1 = spawn BarrelObject "targetname" "barrel1" "model" "$Gas_Mother.brushmodel" (maps/minigames/dyc2/tanx.scr, 92)
local.barrel1 = ^
thread spawntrux (maps/minigames/dyc2/tanx.scr, 13)
^
exec maps/minigames/DYC2/tanx.scr (maps/test_winterbash.scr, 59)
^
********************
ERROR: func_barrel::setSolidType : SOLID_BSP entity at x0.00 y0.00 z0.00 with no BSP model
********************