Napisano dnia: 2013-03-23 15:24:07
Witam. Mam kolejny problem, który nie chce dodać broni moim wrogom.
Oto kod:
Kod jest długi :D.
Gdy jest to:
To im nie chce broni dać. Co mam zrobić?
Jeszcze jedno pytanie. Jak zrobić by zły aktor się nie ruszał tylko stał w miejscu i z miejsca we mnie strzelał?
Oto kod:
Kod:
{$CLEO .cm}
thread 'Misja2'
$ONMISSION = 1
:Mission
0050: gosub @Mission_Start
if
0112: wasted_or_busted // mission only
then
0050: gosub @Mission_Failed
end
0050: gosub @Mission_Cleanup
$ONMISSION = 0
end_thread
:Mission_Start
Model.Load(285)
Model.Load(280)
Model.Load(283)
Model.Load(352)
Model.Load(353)
Model.Load(356)
Model.Load(#CELLPHONE)
:Sprawdzenie_Modeli
wait 0
if
Model.Available(285)
Model.Available(280)
Model.Available(283)
Model.Available(352)
Model.Available(353)
Model.Available(356)
Model.Available(#CELLPHONE)
jf @Sprawdzenie_Modeli
054C: use_GXT_table "Misja2"
00BA: show_text_styled GXT 'Misja2' time 3000 style 2
01B4: set_player $PLAYER_CHAR can_move 0
01F0: set_max_wanted_level_to 0
fade 0 1500
wait 3000
fade 1 1000
0173: set_actor $PLAYER_ACTOR Z_angle_to 359.2428
02A3: enable_widescreen 1
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
wait 2500
00BC: show_text_highpriority GXT 'Rozmowa' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'Kupa' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'Kupa1' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'Kupa2' time 4000 flag 1
wait 4000
00BC: show_text_highpriority GXT 'Kupa3' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'Kupa4' time 4000 flag 1
wait 4500
01B4: set_player $PLAYER_CHAR can_move 1
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
02A3: enable_widescreen 0
00BC: show_text_highpriority GXT 'Kupa5' time 3000 flag 1
032B: 3@ = create_weapon_pickup 353 group 5 ammo 180 at 2310.1748 -1691.0334 13.559
03BC: 1@ = create_sphere_at 1537.2689 -1626.5303 13.3828 radius 3.0
018A: 2@ = create_checkpoint_at 1537.2689 -1626.5303 13.3828
009A: 10@ = create_actor_pedtype 24 model 280 at 1584.7742 -1618.1715 13.3828
0173: set_actor 10@ Z_angle_to 88.9959
009A: 11@ = create_actor_pedtype 24 model 285 at 1585.0603 -1625.2479 13.3828
0173: set_actor 11@ Z_angle_to 88.9959
009A: 12@ = create_actor_pedtype 24 model 285 at 1586.7473 -1648.8936 10.6591
0173: set_actor 12@ Z_angle_to 17.2653
009A: 13@ = create_actor_pedtype 24 model 280 at 1601.3073 -1679.9327 5.8906
0173: set_actor 13@ Z_angle_to 359.4051
009A: 14@ = create_actor_pedtype 24 model 280 at 1593.8711 -1681.1085 5.8906
0173: set_actor 14@ Z_angle_to 1.5751
009A: 15@ = create_actor_pedtype 24 model 285 at 1585.5222 -1712.2997 5.8906
0173: set_actor 15@ Z_angle_to 332.1214
009A: 16@ = create_actor_pedtype 24 model 280 at 1574.3168 -1703.9894 5.8906
0173: set_actor 16@ Z_angle_to 317.3947
009A: 17@ = create_actor_pedtype 24 model 285 at 1552.0781 -1703.0499 5.8906
0173: set_actor 17@ Z_angle_to 269.7675
009A: 18@ = create_actor_pedtype 24 model 285 at 1539.4381 -1690.1968 5.8906
0173: set_actor 18@ Z_angle_to 249.3773
009A: 19@ = create_actor_pedtype 24 model 283 at 1535.7345 -1670.608 5.8906
0173: set_actor 19@ Z_angle_to 192.0368
01B9: set_actor 10@ armed_weapon_to 28
01B9: set_actor 11@ armed_weapon_to 28
01B9: set_actor 12@ armed_weapon_to 29
01B9: set_actor 13@ armed_weapon_to 31
01B9: set_actor 14@ armed_weapon_to 28
01B9: set_actor 15@ armed_weapon_to 31
01B9: set_actor 16@ armed_weapon_to 29
01B9: set_actor 17@ armed_weapon_to 29
01B9: set_actor 18@ armed_weapon_to 31
01B9: set_actor 19@ armed_weapon_to 31
:Gracz_na_Miejscu
wait 0
if
00EC: actor $PLAYER_ACTOR 0 near_point 1537.2689 -1626.5303 13.3828 radius 3.5 3.5
jf @Gracz_na_Miejscu
00BC: show_text_highpriority GXT 'Kupa6' time 4000 flag 1
03BD: destroy_sphere 1@
0164: disable_marker 2@
0187: 21@ = create_marker_above_actor 10@
0187: 22@ = create_marker_above_actor 11@
0187: 23@ = create_marker_above_actor 12@
0187: 24@ = create_marker_above_actor 13@
0187: 25@ = create_marker_above_actor 14@
0187: 26@ = create_marker_above_actor 15@
0187: 27@ = create_marker_above_actor 16@
0187: 28@ = create_marker_above_actor 17@
0187: 29@ = create_marker_above_actor 18@
0187: 30@ = create_marker_above_actor 19@
0165: set_marker 21@ color_to 5
0165: set_marker 22@ color_to 5
0165: set_marker 23@ color_to 5
0165: set_marker 24@ color_to 5
0165: set_marker 25@ color_to 5
0165: set_marker 26@ color_to 5
0165: set_marker 27@ color_to 5
0165: set_marker 28@ color_to 5
0165: set_marker 29@ color_to 5
0165: set_marker 30@ color_to 5
05E2: AS_actor 10@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 11@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 12@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 13@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 14@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 15@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 16@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 17@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 18@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 19@ kill_actor $PLAYER_ACTOR
:1_Kill
wait 0
if
0118: actor 10@ dead
jf @1_Kill
0164: disable_marker 21@
:2_Kill
wait 0
if
0118: actor 11@ dead
jf @2_Kill
0164: disable_marker 22@
:3_Kill
wait 0
if
0118: actor 12@ dead
jf @3_Kill
0164: disable_marker 23@
:4_Kill
wait 0
if
0118: actor 13@ dead
jf @4_Kill
0164: disable_marker 24@
:5_Kill
wait 0
if
0118: actor 14@ dead
jf @5_Kill
0164: disable_marker 25@
:6_Kill
wait 0
if
0118: actor 15@ dead
jf @6_Kill
0164: disable_marker 26@
:7_Kill
wait 0
if
0118: actor 16@ dead
jf @7_Kill
0164: disable_marker 27@
:8_Kill
wait 0
if
0118: actor 17@ dead
jf @8_Kill
0164: disable_marker 28@
:9_Kill
wait 0
if
0118: actor 18@ dead
jf @9_Kill
0164: disable_marker 29@
:10_Kill
wait 0
if
0118: actor 19@ dead
jf @10_Kill
0164: disable_marker 30@
gosub @Mission_Passed
return
:Mission_Cleanup
00D8: mission_cleanup
return
:Mission_Failed
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1
return
:Mission_Passed
01E3: show_text_1number_styled GXT 'M_PASS' number 500 time 5000 style 1
0109: player $PLAYER_CHAR money += 2500
0394: play_music 1
return
thread 'Misja2'
$ONMISSION = 1
:Mission
0050: gosub @Mission_Start
if
0112: wasted_or_busted // mission only
then
0050: gosub @Mission_Failed
end
0050: gosub @Mission_Cleanup
$ONMISSION = 0
end_thread
:Mission_Start
Model.Load(285)
Model.Load(280)
Model.Load(283)
Model.Load(352)
Model.Load(353)
Model.Load(356)
Model.Load(#CELLPHONE)
:Sprawdzenie_Modeli
wait 0
if
Model.Available(285)
Model.Available(280)
Model.Available(283)
Model.Available(352)
Model.Available(353)
Model.Available(356)
Model.Available(#CELLPHONE)
jf @Sprawdzenie_Modeli
054C: use_GXT_table "Misja2"
00BA: show_text_styled GXT 'Misja2' time 3000 style 2
01B4: set_player $PLAYER_CHAR can_move 0
01F0: set_max_wanted_level_to 0
fade 0 1500
wait 3000
fade 1 1000
0173: set_actor $PLAYER_ACTOR Z_angle_to 359.2428
02A3: enable_widescreen 1
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
wait 2500
00BC: show_text_highpriority GXT 'Rozmowa' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'Kupa' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'Kupa1' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'Kupa2' time 4000 flag 1
wait 4000
00BC: show_text_highpriority GXT 'Kupa3' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'Kupa4' time 4000 flag 1
wait 4500
01B4: set_player $PLAYER_CHAR can_move 1
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
02A3: enable_widescreen 0
00BC: show_text_highpriority GXT 'Kupa5' time 3000 flag 1
032B: 3@ = create_weapon_pickup 353 group 5 ammo 180 at 2310.1748 -1691.0334 13.559
03BC: 1@ = create_sphere_at 1537.2689 -1626.5303 13.3828 radius 3.0
018A: 2@ = create_checkpoint_at 1537.2689 -1626.5303 13.3828
009A: 10@ = create_actor_pedtype 24 model 280 at 1584.7742 -1618.1715 13.3828
0173: set_actor 10@ Z_angle_to 88.9959
009A: 11@ = create_actor_pedtype 24 model 285 at 1585.0603 -1625.2479 13.3828
0173: set_actor 11@ Z_angle_to 88.9959
009A: 12@ = create_actor_pedtype 24 model 285 at 1586.7473 -1648.8936 10.6591
0173: set_actor 12@ Z_angle_to 17.2653
009A: 13@ = create_actor_pedtype 24 model 280 at 1601.3073 -1679.9327 5.8906
0173: set_actor 13@ Z_angle_to 359.4051
009A: 14@ = create_actor_pedtype 24 model 280 at 1593.8711 -1681.1085 5.8906
0173: set_actor 14@ Z_angle_to 1.5751
009A: 15@ = create_actor_pedtype 24 model 285 at 1585.5222 -1712.2997 5.8906
0173: set_actor 15@ Z_angle_to 332.1214
009A: 16@ = create_actor_pedtype 24 model 280 at 1574.3168 -1703.9894 5.8906
0173: set_actor 16@ Z_angle_to 317.3947
009A: 17@ = create_actor_pedtype 24 model 285 at 1552.0781 -1703.0499 5.8906
0173: set_actor 17@ Z_angle_to 269.7675
009A: 18@ = create_actor_pedtype 24 model 285 at 1539.4381 -1690.1968 5.8906
0173: set_actor 18@ Z_angle_to 249.3773
009A: 19@ = create_actor_pedtype 24 model 283 at 1535.7345 -1670.608 5.8906
0173: set_actor 19@ Z_angle_to 192.0368
01B9: set_actor 10@ armed_weapon_to 28
01B9: set_actor 11@ armed_weapon_to 28
01B9: set_actor 12@ armed_weapon_to 29
01B9: set_actor 13@ armed_weapon_to 31
01B9: set_actor 14@ armed_weapon_to 28
01B9: set_actor 15@ armed_weapon_to 31
01B9: set_actor 16@ armed_weapon_to 29
01B9: set_actor 17@ armed_weapon_to 29
01B9: set_actor 18@ armed_weapon_to 31
01B9: set_actor 19@ armed_weapon_to 31
:Gracz_na_Miejscu
wait 0
if
00EC: actor $PLAYER_ACTOR 0 near_point 1537.2689 -1626.5303 13.3828 radius 3.5 3.5
jf @Gracz_na_Miejscu
00BC: show_text_highpriority GXT 'Kupa6' time 4000 flag 1
03BD: destroy_sphere 1@
0164: disable_marker 2@
0187: 21@ = create_marker_above_actor 10@
0187: 22@ = create_marker_above_actor 11@
0187: 23@ = create_marker_above_actor 12@
0187: 24@ = create_marker_above_actor 13@
0187: 25@ = create_marker_above_actor 14@
0187: 26@ = create_marker_above_actor 15@
0187: 27@ = create_marker_above_actor 16@
0187: 28@ = create_marker_above_actor 17@
0187: 29@ = create_marker_above_actor 18@
0187: 30@ = create_marker_above_actor 19@
0165: set_marker 21@ color_to 5
0165: set_marker 22@ color_to 5
0165: set_marker 23@ color_to 5
0165: set_marker 24@ color_to 5
0165: set_marker 25@ color_to 5
0165: set_marker 26@ color_to 5
0165: set_marker 27@ color_to 5
0165: set_marker 28@ color_to 5
0165: set_marker 29@ color_to 5
0165: set_marker 30@ color_to 5
05E2: AS_actor 10@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 11@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 12@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 13@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 14@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 15@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 16@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 17@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 18@ kill_actor $PLAYER_ACTOR
05E2: AS_actor 19@ kill_actor $PLAYER_ACTOR
:1_Kill
wait 0
if
0118: actor 10@ dead
jf @1_Kill
0164: disable_marker 21@
:2_Kill
wait 0
if
0118: actor 11@ dead
jf @2_Kill
0164: disable_marker 22@
:3_Kill
wait 0
if
0118: actor 12@ dead
jf @3_Kill
0164: disable_marker 23@
:4_Kill
wait 0
if
0118: actor 13@ dead
jf @4_Kill
0164: disable_marker 24@
:5_Kill
wait 0
if
0118: actor 14@ dead
jf @5_Kill
0164: disable_marker 25@
:6_Kill
wait 0
if
0118: actor 15@ dead
jf @6_Kill
0164: disable_marker 26@
:7_Kill
wait 0
if
0118: actor 16@ dead
jf @7_Kill
0164: disable_marker 27@
:8_Kill
wait 0
if
0118: actor 17@ dead
jf @8_Kill
0164: disable_marker 28@
:9_Kill
wait 0
if
0118: actor 18@ dead
jf @9_Kill
0164: disable_marker 29@
:10_Kill
wait 0
if
0118: actor 19@ dead
jf @10_Kill
0164: disable_marker 30@
gosub @Mission_Passed
return
:Mission_Cleanup
00D8: mission_cleanup
return
:Mission_Failed
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1
return
:Mission_Passed
01E3: show_text_1number_styled GXT 'M_PASS' number 500 time 5000 style 1
0109: player $PLAYER_CHAR money += 2500
0394: play_music 1
return
Kod jest długi :D.
Gdy jest to:
Kod:
01B9: set_actor 10@ armed_weapon_to 28
01B9: set_actor 11@ armed_weapon_to 28
01B9: set_actor 12@ armed_weapon_to 29
01B9: set_actor 13@ armed_weapon_to 31
01B9: set_actor 14@ armed_weapon_to 28
01B9: set_actor 15@ armed_weapon_to 31
01B9: set_actor 16@ armed_weapon_to 29
01B9: set_actor 17@ armed_weapon_to 29
01B9: set_actor 18@ armed_weapon_to 31
01B9: set_actor 19@ armed_weapon_to 31
01B9: set_actor 11@ armed_weapon_to 28
01B9: set_actor 12@ armed_weapon_to 29
01B9: set_actor 13@ armed_weapon_to 31
01B9: set_actor 14@ armed_weapon_to 28
01B9: set_actor 15@ armed_weapon_to 31
01B9: set_actor 16@ armed_weapon_to 29
01B9: set_actor 17@ armed_weapon_to 29
01B9: set_actor 18@ armed_weapon_to 31
01B9: set_actor 19@ armed_weapon_to 31
To im nie chce broni dać. Co mam zrobić?
Jeszcze jedno pytanie. Jak zrobić by zły aktor się nie ruszał tylko stał w miejscu i z miejsca we mnie strzelał?