tank by the book = huh?


(nikita) #1

ok i did all by the book = tutorials and http://simland.planetquake.gamespy.com/ldr1_1/
i dont know why my tank is not working.

map script


// entity 610
{
"classname" "trigger_multiple"
"target" "tank_enabler"
"targetname" "tank_trigger"
"scriptname" "tank_trigger"
"spawnflags" "2"
"angles" "0 200 355"
"origin" "-308 -7640 288"
// brush 0
{
( 3176 -912 106 ) ( 3176 -912 -86 ) ( 3176 -592 -86 ) common/trigger -32 -36 0 0.5 0.5 0 0 0
( 3688 -592 106 ) ( 3688 -592 -86 ) ( 3688 -912 -86 ) common/trigger -32 -36 0 0.5 0.5 0 0 0
( 3688 -912 106 ) ( 3688 -912 -86 ) ( 3176 -912 -86 ) common/trigger -16 -36 0 0.5 0.5 0 0 0
( 3176 -592 106 ) ( 3176 -592 -86 ) ( 3688 -592 -86 ) common/trigger -16 -36 0 0.5 0.5 0 0 0
( 3176 -592 -86 ) ( 3176 -912 -86 ) ( 3688 -912 -86 ) common/trigger -16 32 0 0.5 0.5 0 0 0
( 3176 -912 106 ) ( 3176 -592 106 ) ( 3688 -592 106 ) common/trigger -16 32 0 0.5 0.5 0 0 0
}
}
// entity 611
{
"classname" "script_mover"
"gun" "browning"
"description" "Churchill Mk VII"
"model2" "models/mapobjects/tanks_sd/churchhill.md3"
"targetname" "tank"
"scriptname" "tank"
"spawnflags" "190"
"health" "1200"
"tagent" "tank_turret"
"origin" "-388 -7584 236"
// brush 0
{
( 3312 -784 12 ) ( 3312 -784 -38 ) ( 3312 -720 -38 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3519 -720 5 ) ( 3519 -720 -38 ) ( 3519 -784 -38 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3519 -784 5 ) ( 3519 -784 -38 ) ( 3312 -784 -38 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3312 -720 12 ) ( 3312 -720 -38 ) ( 3519 -720 -38 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3312 -720 -38 ) ( 3312 -784 -38 ) ( 3519 -784 -38 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3312 -784 12 ) ( 3312 -720 12 ) ( 3476 -720 12 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3475.9969940186 -720 12 ) ( 3519 -720 5 ) ( 3519 -784 5 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
}
// brush 1
{
( 3278 -784 8 ) ( 3278 -784 -16 ) ( 3278 -720 -16.0010070801 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3312 -720 8 ) ( 3312 -720 -32 ) ( 3312 -784 -32.0010070801 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3312 -784 8 ) ( 3312 -784 -32 ) ( 3278 -784 -16.0010070801 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3278 -720 8 ) ( 3278 -720 -16 ) ( 3312 -720 -32.0010070801 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3278 -784 8 ) ( 3278 -720 8 ) ( 3312 -720 8 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3278 -720 -16 ) ( 3278 -784 -16 ) ( 3312 -784 -31.9989929199 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
}
// brush 2
{
( 3290 -815 -6 ) ( 3290 -815 -12 ) ( 3290 -784 -12 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3312 -784 8 ) ( 3312 -784 -42 ) ( 3312 -815 -42 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3312 -815 8 ) ( 3312 -815 -42 ) ( 3294 -815 -24 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3290 -784 -6 ) ( 3290 -784 -12 ) ( 3294 -784 -24 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3300 -784 8 ) ( 3312 -784 8 ) ( 3312 -815 8 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3312 -815 -41.9980010986 ) ( 3312 -784 -41.9980010986 ) ( 3293.9989929199 -784 -23.9980010986 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3293.9989929199 -784 -23.9989929199 ) ( 3290 -784 -12.0010070801 ) ( 3290 -815 -12.0010070801 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3290 -815 -6.0010070801 ) ( 3290 -784 -6.0010070801 ) ( 3300.0010070801 -784 8 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
}
// brush 3
{
( 3290 -720 -6 ) ( 3290 -720 -12 ) ( 3290 -688 -12 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3312 -688 8 ) ( 3312 -688 -42 ) ( 3312 -720 -42 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3312 -720 8 ) ( 3312 -720 -42 ) ( 3294 -720 -24 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3290 -688 -6 ) ( 3290 -688 -12 ) ( 3294 -688 -24 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3300 -688 8 ) ( 3312 -688 8 ) ( 3312 -720 8 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3312 -720 -41.9980010986 ) ( 3312 -688 -41.9980010986 ) ( 3293.9989929199 -688 -23.9980010986 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3293.9989929199 -688 -23.9989929199 ) ( 3290 -688 -12.0010070801 ) ( 3290 -720 -12.0010070801 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3290 -720 -6.0010070801 ) ( 3290 -688 -6.0010070801 ) ( 3300.0010070801 -688 8 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
}
// brush 4
{
( 3312 -815 12 ) ( 3312 -815 -42 ) ( 3312 -784 -42 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3572 -784 -4 ) ( 3572 -784 -20 ) ( 3572 -815 -20 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3572 -815 -4 ) ( 3572 -815 -20 ) ( 3542 -815 -50 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3312 -784 12 ) ( 3312 -784 -42 ) ( 3318 -784 -48 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3348 -815 -58 ) ( 3514 -815 -58 ) ( 3514 -784 -58 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3312 -815 12 ) ( 3312 -784 12 ) ( 3561 -784 12 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3572 -784 -3.9989929199 ) ( 3572 -815 -3.9989929199 ) ( 3561.0010070801 -815 12 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3317.9989929199 -784 -48 ) ( 3312 -784 -42 ) ( 3312 -815 -42 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3318.0010070801 -815 -48.0010070801 ) ( 3347.9980010986 -815 -58 ) ( 3347.9980010986 -784 -58 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3513.9969940186 -815 -58 ) ( 3542.0010070801 -815 -49.9989929199 ) ( 3542.0010070801 -784 -49.9989929199 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3541.9980010986 -815 -50.0010070801 ) ( 3572 -815 -19.9989929199 ) ( 3572 -784 -19.9989929199 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
}
// brush 5
{
( 3312 -720 12 ) ( 3312 -720 -42 ) ( 3312 -688 -42 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3572 -688 -4 ) ( 3572 -688 -20 ) ( 3572 -720 -20 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3572 -720 -4 ) ( 3572 -720 -20 ) ( 3542 -720 -50 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3312 -688 12 ) ( 3312 -688 -42 ) ( 3318 -688 -48 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3348 -720 -58 ) ( 3514 -720 -58 ) ( 3514 -688 -58 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3312 -720 12 ) ( 3312 -688 12 ) ( 3561.3329925537 -688 12 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3572 -688 -4.0030059814 ) ( 3572 -720 -4.0030059814 ) ( 3561.3309936523 -720 12 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3317.9989929199 -688 -48 ) ( 3312 -688 -42 ) ( 3312 -720 -42 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3318.0010070801 -720 -48.0010070801 ) ( 3347.9980010986 -720 -58 ) ( 3347.9980010986 -688 -58 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3541.9980010986 -720 -50.0010070801 ) ( 3572 -720 -19.9989929199 ) ( 3572 -688 -19.9989929199 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3513.9969940186 -720 -58 ) ( 3542.0010070801 -720 -49.9989929199 ) ( 3542.0010070801 -688 -49.9989929199 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
}
// brush 6
{
( 3519 -784 -14 ) ( 3519 -784 -38 ) ( 3519 -720 -38 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3549 -720 -20 ) ( 3549 -720 -38 ) ( 3549 -784 -38 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3549 -784 -20 ) ( 3549 -784 -38 ) ( 3519 -784 -38 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3519 -720 -14 ) ( 3519 -720 -38 ) ( 3549 -720 -38 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3519 -720 -38 ) ( 3519 -784 -38 ) ( 3549 -784 -38 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3519 -784 -13.9989929199 ) ( 3519 -720 -13.9989929199 ) ( 3549 -720 -19.9989929199 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
}
}
// entity 612
{
"classname" "func_timer"
"origin" "3600 -752 110"
"wait" "1"
"spawnflags" "1"
"target" "tank_disabler"
}
// entity 613
{
"classname" "target_script_trigger"
"origin" "3600 -728 110"
"scriptname" "tank_disabler"
"target" "run"
"targetname" "tank_disabler"
}
// entity 614
{
"classname" "target_script_trigger"
"origin" "3600 -776 110"
"targetname" "tank_enabler"
"target" "run"
"scriptname" "tank_enabler"
}
// entity 615
{
"classname" "target_kill"
"target" "tank_construct"
"targetname" "kill_tank"
"origin" "3600 -800 110"
}
// entity 616
{
"classname" "trigger_objective_info"
"objflags" "22"
"infoAxis" "The Axis team must stop this Churchill tank at all costs if their base is to remain secure."
"infoAllied" "The Allied Churchill tank must be escorted in order for it to destroy various objects impeding the Allies' path. If damaged, on the spot repairs must be completed to get it moving once more."
"targetname" "tank_build"
"scriptname" "tank_trigger"
"spawnflags" "14"
"track" "the Tank"
"target" "tank_construct"
"override" "The tank has been repaired"
"shortname" "Tank"
"origin" "-388 -7584 288"
// brush 0
{
( 3256 -832 78 ) ( 3256 -832 -82 ) ( 3256 -672 -82 ) common/trigger -32 -36 0 0.5 0.5 0 0 0
( 3580 -672 78 ) ( 3580 -672 -82 ) ( 3580 -832 -82 ) common/trigger -32 -36 0 0.5 0.5 0 0 0
( 3580 -832 78 ) ( 3580 -832 -82 ) ( 3256 -832 -82 ) common/trigger -16 -36 0 0.5 0.5 0 0 0
( 3256 -672 78 ) ( 3256 -672 -82 ) ( 3580 -672 -82 ) common/trigger -16 -36 0 0.5 0.5 0 0 0
( 3256 -672 -82 ) ( 3256 -832 -82 ) ( 3580 -832 -82 ) common/trigger -16 32 0 0.5 0.5 0 0 0
( 3256 -832 78 ) ( 3256 -672 78 ) ( 3580 -672 78 ) common/trigger -16 32 0 0.5 0.5 0 0 0
}
}
// entity 617
{
"classname" "func_constructible"
"scriptname" "tank_construct"
"targetname" "tank_construct"
"spawnflags" "9"
"origin" "-216 -7744 148"
// brush 0
{
( 3840 -912 330 ) ( 3840 -912 298 ) ( 3840 -880 298 ) common/clipweap 0 12 0 0.5 0.5 0 0 0
( 3872 -880 330 ) ( 3872 -880 298 ) ( 3872 -912 298 ) common/clipweap 0 12 0 0.5 0.5 0 0 0
( 3872 -912 330 ) ( 3872 -912 298 ) ( 3840 -912 298 ) common/clipweap -16 12 0 0.5 0.5 0 0 0
( 3840 -880 330 ) ( 3840 -880 298 ) ( 3872 -880 298 ) common/clipweap -16 12 0 0.5 0.5 0 0 0
( 3840 -880 298 ) ( 3840 -912 298 ) ( 3872 -912 298 ) common/clipweap -16 0 0 0.5 0.5 0 0 0
( 3840 -912 330 ) ( 3840 -880 330 ) ( 3872 -880 330 ) common/clipweap -16 0 0 0.5 0.5 0 0 0
}
}
// entity 618
{
"classname" "misc_gamemodel"
"model" "models/mapobjects/tanks_sd/churchhill_flash.md3"
"targetname" "tank_flash"
"scriptname" "tank_flash"
"origin" "3944 -688 302"
}
// entity 619
{
"classname" "target_smoke"
"origin" "3944 -752 302"
"targetname" "tank_smoke"
"scriptname" "tank_smoke"
"spawnflags" "6"
"start_size" "24"
"end_size" "96"
}
// entity 620
{
"classname" "info_train_spline_main"
"origin" "3428 -752 -22"
"targetname" "spln0"
"target" "spln1"
}
// entity 621
{
"classname" "info_train_spline_main"
"control" "ctrl1"
"targetname" "spln1"
"origin" "3304 -744 -30"
"target" "spln2"
}
// entity 622
{
"classname" "info_train_spline_main"
"control" "ctrl2"
"origin" "3176 -752 -30"
"targetname" "spln2"
"target" "spln3"
}
// entity 623
{
"classname" "info_train_spline_main"
"control" "ctrl3"
"targetname" "spln3"
"origin" "3048 -752 -30"
"target" "spln4"
}
// entity 624
{
"classname" "misc_gamemodel"
"angle" "180"
"origin" "3428 -752 10"
"model" "models/mapobjects/tanks_sd/churchhill_turret.md3"
"scriptname" "tank_turret"
"targetname" "tank_turret"
}
// entity 625
{
"classname" "script_mover"
"damageparent" "tank"
"origin" "-388 -7584 236"
"targetname" "tank_turret2"
"scriptname" "tank_turret2"
"spawnflags" "2"
// brush 0
{
( -361 -2440 383.0010070801 ) ( -361 -2440 350 ) ( -361 -2408 350 ) common/clipweap_metal 48 12 0 0.5 0.5 0 0 0
( -340 -2408 385.9989929199 ) ( -340 -2408 350 ) ( -340 -2440 350 ) common/clipweap_metal 48 12 0 0.5 0.5 0 0 0
( -340 -2440 385.9989929199 ) ( -340 -2440 350 ) ( -361 -2440 350 ) common/clipweap_metal 16 12 0 0.5 0.5 0 0 0
( -361 -2408 383.0010070801 ) ( -361 -2408 350 ) ( -340 -2408 350 ) common/clipweap_metal 16 12 0 0.5 0.5 0 0 0
( -361 -2408 350 ) ( -361 -2440 350 ) ( -340 -2440 350 ) common/clipweap_metal 16 -48 0 0.5 0.5 0 0 0
( -361 -2440 383 ) ( -361 -2408 383 ) ( -340 -2408 386 ) common/clipweap_metal 16 -48 0 0.5 0.5 0 0 0
}
// brush 1
{
( 3388 -778.0010070801 -40 ) ( 3388 -735 -40 ) ( 3388 -735 42 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3475 -720 -40 ) ( 3475 -780 -40 ) ( 3475 -780 33 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3415 -712 -40 ) ( 3421 -712 -40 ) ( 3421 -712 42 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3388 -735 -40 ) ( 3388 -778 -40 ) ( 3394 -783 -40 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3388 -778.0010070801 42 ) ( 3388 -735 42 ) ( 3415 -712 42 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3394.0030059814 -783 -40 ) ( 3388 -777.9980010986 -40 ) ( 3388 -777.9980010986 42 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3388 -735.0010070801 42 ) ( 3388 -735.0010070801 -40 ) ( 3415.0010070801 -712 -40 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3475 -720 33.0010070801 ) ( 3475 -780 33.0010070801 ) ( 3472.0030059814 -782.9980010986 34.9989929199 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3445.0010070801 -787.2949981689 42 ) ( 3445.0010070801 -715.5559997559 42 ) ( 3471.9989929199 -719.5549926758 35.0010070801 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3475 -780 33 ) ( 3475 -780 -40 ) ( 3472 -783 -40 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3428 -790 -40 ) ( 3394 -783 -40 ) ( 3394 -783 42 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3472 -783 -40 ) ( 3428.0010070801 -790 -40 ) ( 3428.0010070801 -790 42 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3421.0010070801 -712 42 ) ( 3421.0010070801 -712 -40 ) ( 3475 -720 -40 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
}
// brush 2
{
( 3476 -759 26 ) ( 3476 -759 21 ) ( 3476 -755 17 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3504 -745 26 ) ( 3504 -745 21 ) ( 3504 -749 17 ) common/clipweap_metal -32 -36 0 0.5 0.5 0 0 0
( 3504 -759 26 ) ( 3504 -759 21 ) ( 3476 -759 21 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3476 -745 26 ) ( 3476 -745 21 ) ( 3504 -745 21 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3476 -749 17 ) ( 3476 -755 17 ) ( 3504 -755 17 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3476 -755 30 ) ( 3476 -749 30 ) ( 3504 -749 30 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3476 -748.9989929199 30 ) ( 3476 -745 26.0010070801 ) ( 3504 -745 25.9980010986 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3476 -745 21.0019989014 ) ( 3476 -749.0010070801 17 ) ( 3504 -748.9980010986 17 ) common/clipweap_metal -16 -36 0 0.5 0.5 0 0 0
( 3504 -759 20.9989929199 ) ( 3504 -755.0010070801 17 ) ( 3476 -754.9980010986 17 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
( 3504 -755 30 ) ( 3504 -759 26 ) ( 3476 -759 26 ) common/clipweap_metal -16 32 0 0.5 0.5 0 0 0
}
}
// entity 626
{
"classname" "info_train_spline_control"
"origin" "2984 -748 -46"
"targetname" "ctrl3"
}
// entity 627
{
"classname" "info_train_spline_control"
"targetname" "ctrl2"
"origin" "3112 -756 -30"
}
// entity 628
{
"classname" "info_train_spline_control"
"origin" "3240 -740 -30"
"targetname" "ctrl1"
}
// entity 629
{
"classname" "script_mover"
"scriptname" "tank_turret2solid"
"targetname" "tank_turret2solid"
"origin" "-388 -7584 236"
// brush 0
{
( 3476 -759 26 ) ( 3476 -759 21 ) ( 3476 -755 17 ) rubble/debri_m01 -96 -36 0 0.5 0.5 0 0 0
( 3504 -745 26 ) ( 3504 -745 21 ) ( 3504 -749 17 ) rubble/debri_m01 -96 -36 0 0.5 0.5 0 0 0
( 3504 -759 26 ) ( 3504 -759 21 ) ( 3476 -759 21 ) rubble/debri_m01 -208 -36 0 0.5 0.5 0 0 0
( 3476 -745 26 ) ( 3476 -745 21 ) ( 3504 -745 21 ) rubble/debri_m01 -208 -36 0 0.5 0.5 0 0 0
( 3476 -749 17 ) ( 3476 -755 17 ) ( 3504 -755 17 ) rubble/debri_m01 -208 96 0 0.5 0.5 0 0 0
( 3476 -755 30 ) ( 3476 -749 30 ) ( 3504 -749 30 ) rubble/debri_m01 -208 96 0 0.5 0.5 0 0 0
( 3476 -748.9989929199 30 ) ( 3476 -745 26.0010070801 ) ( 3504 -745 25.9980010986 ) rubble/debri_m01 -208 96 0 0.5 0.5 0 0 0
( 3476 -745 21.0019989014 ) ( 3476 -749.0010070801 17 ) ( 3504 -748.9980010986 17 ) rubble/debri_m01 -208 -36 0 0.5 0.5 0 0 0
( 3504 -759 20.9989929199 ) ( 3504 -755.0010070801 17 ) ( 3476 -754.9980010986 17 ) rubble/debri_m01 -208 96 0 0.5 0.5 0 0 0
( 3504 -755 30 ) ( 3504 -759 26 ) ( 3476 -759 26 ) rubble/debri_m01 -208 96 0 0.5 0.5 0 0 0
}
// brush 1
{
( -340 -2450.0010070801 304 ) ( -340 -2407 304 ) ( -340 -2407 386 ) rubble/debri_m01 176 140 0 0.5 0.5 0 0 0
( -253 -2392 304 ) ( -253 -2452 304 ) ( -253 -2452 377 ) rubble/debri_m01 176 140 0 0.5 0.5 0 0 0
( -313 -2384 304 ) ( -307 -2384 304 ) ( -307 -2384 386 ) rubble/debri_m01 80 140 0 0.5 0.5 0 0 0
( -340 -2407 304 ) ( -340 -2450 304 ) ( -334 -2455 304 ) rubble/debri_m01 80 -176 0 0.5 0.5 0 0 0
( -340 -2450.0010070801 386 ) ( -340 -2407 386 ) ( -313 -2384 386 ) rubble/debri_m01 80 -176 0 0.5 0.5 0 0 0
( -333.9969940186 -2455 304 ) ( -340 -2449.9980010986 304 ) ( -340 -2449.9980010986 386 ) rubble/debri_m01 80 140 0 0.5 0.5 0 0 0
( -300 -2462 304 ) ( -334 -2455 304 ) ( -334 -2455 386 ) rubble/debri_m01 80 140 0 0.5 0.5 0 0 0
( -256 -2455 304 ) ( -299.9989929199 -2462 304 ) ( -299.9989929199 -2462 386 ) rubble/debri_m01 80 140 0 0.5 0.5 0 0 0
( -253 -2452 377 ) ( -253 -2452 304 ) ( -256 -2455 304 ) rubble/debri_m01 176 140 0 0.5 0.5 0 0 0
( -306.9989929199 -2384 386 ) ( -306.9989929199 -2384 304 ) ( -253 -2392 304 ) rubble/debri_m01 80 140 0 0.5 0.5 0 0 0
( -255.9969940186 -2391.5559997559 378.9989929199 ) ( -253 -2392 377.0010070801 ) ( -253 -2452 377.0010070801 ) rubble/debri_m01 80 -176 0 0.5 0.5 0 0 0
( -282.9989929199 -2459.2949981689 386 ) ( -282.9989929199 -2387.5559997559 386 ) ( -256.0010070801 -2391.5549926758 379.0010070801 ) rubble/debri_m01 80 -176 0 0.5 0.5 0 0 0
( -340 -2407.0010070801 386 ) ( -340 -2407.0010070801 304 ) ( -312.9989929199 -2384 304 ) rubble/debri_m01 80 140 0 0.5 0.5 0 0 0
}
// brush 2
{
( -361 -2440 383.0010070801 ) ( -361 -2440 350 ) ( -361 -2408 350 ) rubble/debri_m01 176 140 0 0.5 0.5 0 0 0
( -340 -2408 385.9989929199 ) ( -340 -2408 350 ) ( -340 -2440 350 ) rubble/debri_m01 176 140 0 0.5 0.5 0 0 0
( -340 -2440 385.9989929199 ) ( -340 -2440 350 ) ( -361 -2440 350 ) rubble/debri_m01 80 140 0 0.5 0.5 0 0 0
( -361 -2408 383.0010070801 ) ( -361 -2408 350 ) ( -340 -2408 350 ) rubble/debri_m01 80 140 0 0.5 0.5 0 0 0
( -361 -2408 350 ) ( -361 -2440 350 ) ( -340 -2440 350 ) rubble/debri_m01 80 -176 0 0.5 0.5 0 0 0
( -361 -2440 383 ) ( -361 -2408 383 ) ( -340 -2408 386 ) rubble/debri_m01 80 -176 0 0.5 0.5 0 0 0
}
}
// entity 630
{
"classname" "info_train_spline_main"
"origin" "2935 -752 -30"
"targetname" "spln4"
"target" "spln5"
}
// entity 631
{
"classname" "info_train_spline_main"
"origin" "2855 -752 -30"
"targetname" "spln5"
"control" "ctrl4"
}
// entity 632
{
"classname" "info_train_spline_control"
"origin" "2816 -752 -32"
"targetname" "ctrl4"
}

Game script


tank_disabler
{
    trigger run
    {
        trigger tank tank_disable
    }
}

tank_enabler
{
    trigger run
    {
        trigger tank tank_enable
    }
}

trigger tank_enable
{
    trigger self stuck_check
    accum 1 abort_if_bitset 3 // stuck check

    accum 4 set 0 // reset stop counter
    accum 1 bitreset 8 // reset stop check
    accum 1 abort_if_bitset 2 // already following spline
    accum 5 abort_if_not_equal 0// are we not in a script lockout?
    accum 1 abort_if_bitset 7 // death check

    // Any just started moving stuff goes here

    trigger self script_lockout
    trigger tank_sound start

    startanimation 55 10 15 nolerp norandom
    wait 666
    startanimation 5 40 15 nolerp norandom
    wait 500
    trigger self tracks_forward
    trigger self script_lockout_stop
    trigger self move
}

trigger tank_disable
{
    accum 4 inc 1 // up the stop counter
    accum 4 abort_if_less_than 4

    accum 1 bitset 8 // set stop check

    trigger self deathcheck
}

trigger move_check
{
    trigger self stuck_check
    accum 1 abort_if_bitset 3

    trigger self dispatch
}

trigger move
{
    trigger self move_check
    wait 500
    trigger self move
}

trigger dispatch
{
    accum 3 trigger_if_equal 0 tank run_0
    accum 3 trigger_if_equal 1 tank run_1
    accum 3 trigger_if_equal 2 tank run_2
    accum 3 trigger_if_equal 3 tank run_3
}

trigger run_0
{
    accum 1 bitset 2
    trigger tank_turret2 run_0
    followspline 0 spln0 80 wait length -64
    accum 1 bitreset 2

    trigger self run_continue
}
trigger run_incpos
{
    accum 3 inc 1
}

trigger run_continue
{
    trigger self run_incpos
    trigger self deathcheck
    trigger self stopcheck
    trigger self move
}

trigger stuck_check
{
    accum 1 bitreset 3

    trigger self stuck_check_scriptlockout

}

trigger stuck_check_finished
{
    accum 3 abort_if_less_than 3
    accum 1 bitset 3
}

trigger stuck_check_scriptlockout
{
    accum 5 abort_if_equal 0
    accum 1 bitset 3
}
trigger stopcheck_setup
{
    accum 1 bitset 6
    accum 1 abort_if_bitset 8
    trigger self stuck_check
    accum 1 abort_if_bitset 3
    accum 1 bitreset 6
}

trigger stopcheck
{
    trigger self stopcheck_setup
    accum 1 abort_if_not_bitset 6
    trigger self script_lockout

    // Any just stopped moving stuff goes here
    trigger tank_sound stop
    trigger self tracks_stop
    startanimation 45 10 15 nolerp norandom
    wait 666
    startanimation 0 1 15 nolerp norandom
    wait 900

    trigger self script_lockout_stop
    resetscript
}
trigger script_lockout
{
    accum 5 inc 1
}

trigger script_lockout_stop
{
    accum 5 inc -1
}

{
    accum 1 bitset 7
}

trigger deathcheck
{
    accum 1 abort_if_not_bitset 7
    accum 1 abort_if_bitset 9
    accum 1 abort_if_bitset 2
    accum 5 abort_if_not_equal 0

    accum 1 bitset 9

    changemodel models/mapobjects/tanks_sd/churchhill_broken.md3
    setstate tank_smoke default

    alertentity kill_tank

    trigger self sound_death
    trigger self tracks_stop
    trigger self script_lockout
    trigger self tracks_stop
    startanimation 45 10 15 nolerp norandom
    wait 666
    startanimation 0 1 15 nolerp norandom
    trigger self script_lockout_stop
    resetscript
}

rebirth
{
    accum 1 bitreset 9
    accum 1 bitreset 7

    trigger self script_lockout
    changemodel models/mapobjects/tanks_sd/churchhill.md3

    setstate tank_smoke invisible

    trigger tank_sound rebirth
    wait 500

    trigger self script_lockout_stop
}

tank_trigger
{
    spawn
    {
        wait 100
        attachtotag tank tag_turret
    }
}

tank_build
{
    spawn
    {
        wait 100
        attachtotag tank tag_turret
    }
}

tank_construct
{
    spawn
    {
        wait 400
        constructible_class 2
    }

    built final
    {
        alertentity tank
    }

    trigger final_pos
    {
        constructible_constructxpbonus 3
        constructible_destructxpbonus 3
    }
}

screenie

NOTE: script_multiplayer + game_manager included


(Shaderman) #2

The turret seems to be very low above the ground. Is it possible that parts of the tank are stuck in a structural ground brush?


(nikita) #3

i dont think so the tank aint working at all… u sure its not 1 of these script problems?


(Shaderman) #4

No I’m not sure (as usual :smiley: ). I guessed - didn’t check the map and script because I was (and I still am) at work. What have you tried yourself to solve the problem? Some more information would be helpful.

Edit:

You could use Chruker’s tank prefab http://www.splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&p=78382

Btw, the light and torch on the left wall don’t look good IMO


(nikita) #5

is 5 hours of messing with the tank called trying to solve it myself? :smiley:


(Shaderman) #6

5 hours? :smiley: It took me 2 weeks to get the tank working on my own and understand how scripting in ET works :banghead: So what about the prefab?


(nikita) #7

yes but lets say its not my 1st attempt more like the 10-15
btw i used the tut tank but the result is the tank just !!! ignore the script completly. aint doing anything, and nothing by the script

SOLVED: thank you shaderman
am using radinet 1.5 and an old bug is when u TAKE copy stuff from other map it add 1 to all the targets now i am aware of the problem but i forgot to remove the disabler+enabler = run1 the 1
= run
now its working