diff --git a/maps/mp/bots/_wp_editor.gsc b/maps/mp/bots/_wp_editor.gsc index 1998c45..7bf252a 100644 --- a/maps/mp/bots/_wp_editor.gsc +++ b/maps/mp/bots/_wp_editor.gsc @@ -705,27 +705,37 @@ destroyOnDeath( hud ) { hud endon( "death" ); self waittill_either( "death", "disconnect" ); - hud destroy(); + + if ( isdefined(hud) ) + { + hud destroy(); + } } textScroll( string ) { self endon( "death" ); self endon( "disconnect" ); - // thanks ActionScript - /*back = createbar( ( 0, 0, 0 ), 1000, 30 ); - back setpoint( "CENTER", undefined, 0, 220 ); - self thread destroyOnDeath( back ); - - text = createfontstring( "default", 1.5 ); - text settext( string ); + text = newclienthudelem( self ); self thread destroyOnDeath( text ); + + text.font = "default"; + text.fontscale = 1.5; + text.alignx = "center"; + text.aligny = "middle"; + text.horzalign = "center"; + text.vertalign = "middle"; + text.y = 220; + // cod2 only allows localized strings... + text settext( &"PLATFORM_PRESS_TO_SPAWN" ); for ( ;; ) { - text setpoint( "CENTER", undefined, 1200, 220 ); - text setpoint( "CENTER", undefined, -1200, 220, 20 ); + text.x = 1200; + text moveovertime( 20 ); + text.x = -1200; + wait 20; - }*/ + } } diff --git a/scriptdata/waypoints/mp_cod_dust_wp.csv b/scriptdata/waypoints/mp_cod_dust_wp.csv index 68ff732..163d5b6 100644 --- a/scriptdata/waypoints/mp_cod_dust_wp.csv +++ b/scriptdata/waypoints/mp_cod_dust_wp.csv @@ -15,16 +15,16 @@ 688.432 1560.28 2.67747,12 14,stand,16.2488 -90.6592 0,, 686.743 1271.12 32.125,13 15 27,stand,16.1554 -90.7526 0,, 420.413 1233.17 32.125,14 16,stand,15.3204 178.583 0,, -102.836 1235.09 2.13169,15 17,stand,5.76233 173.754 0,, +102.836 1235.09 2.13169,15 17 23,stand,5.76233 173.754 0,, -149.283 1253.16 0.745125,16 18 22,stand,19.4073 -178.077 0,, -280.648 1248.4 36.1911,17 19,stand,25.7135 100.624 0,, -299.174 1381.62 40.9798,18 20,stand,24.5105 172.271 0,, -578.246 1382.06 44.9136,19 21,stand,25.0653 -96.5973 0,, -596.25 1242.02 41.4588,20,stand,16.062 104.227 0,, -131.326 1416.13 3.33408,17 23,stand,21.3519 19.8688 0,, -10.4335 1497.11 6.08899,22 24,stand,17.2705 160.005 0,, +10.4335 1497.11 6.08899,22 24 16 25,stand,17.2705 160.005 0,, 3.18074 1607.48 -6.89213,23 6 25 8,stand,17.4573 154.061 0,, -204.731 1630.97 -0.220104,24 26 9,stand,22.5604 2.8894 0,, +204.731 1630.97 -0.220104,24 26 9 23,stand,22.5604 2.8894 0,, 432.278 1629.7 0.323285,25 10,stand,24.4171 -60.3094 0,, 1057.08 1241.89 32.125,14 28 65,stand,17.1771 -3.16956 0,, 1266.22 1265.83 32.125,27 29,stand,14.1174 -12.6343 0,,