|
本帖最后由 Sidlady 于 2012-4-11 22:12 编辑
= =我的猥瑣大軍: [閲兵]
以前寫的代碼,按home刷出小弟,有厚血厚防
問題是:當小弟死亡后。。無法再次刷出,我考慮過這種情況,所以在循環末尾設置這樣的語句:- :s_999
- if
- 0118: actor 0@ dead
- jf @s_954
- wait 0
- Actor.RemoveReferences(0@)
- 009B: destroy_actor 0@
- wait 500
- jump @S_11
复制代码 可是小弟意外死亡后,= = 模型卻沒有消失 。。各位知道怎麽回事嗎? 能幫忙解決下嗎?
以下是簡化后的cleo源碼:- // This file was decompiled using sascm.ini published by Seemann (http://baidu.com/files/SASCM.rar) on 13.10.2007
- {$VERSION 3.1.0027}
- {$CLEO .cs}
- //-------------MAIN---------------
- thread 'S'
- :S_11
- wait 0
- if
- Player.Defined($PLAYER_CHAR)
- jf @s_11
- if
- 0AB0: key_pressed 36
- jf @s_11
- wait 0
- Model.Load(#MALE01)
- Model.Load(#katana)
- if and
- Model.Available(#MALE01)
- Model.Load(#katana)
- jf @S_11
- 038B: load_requested_models
- wait 0
- 04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset 0.0 4.8 0.0
- 0@ = Actor.Create(Gang2, #MALE01, 3@, 4@, 5@)
- Actor.Health(0@) = 5000
- Actor.Armour(0@) = 5000
- 01B2: give_actor 0@ weapon 8 ammo 60 // Load the weapon model before using this
- 07AF: $GANG = player $PLAYER_CHAR group
- 0630: put_actor $PLAYER_ACTOR in_group $GANG as_leader
- 0631: put_actor 0@ in_group $GANG
- jump @s_954
- :s_954
- wait 0
- 0AD2: $target = player $PLAYER_CHAR targeted_actor //IF and SET
- if and
- 0457: player $PLAYER_CHAR aiming_at_actor $target
- 0AB0: key_pressed 85
- jf @s_954
- 04EB: AS_actor 0@ crouch 0
- 05E2: AS_actor 0@ kill_actor $target
- jump @S_999
- :s_999
- if
- 0118: actor 0@ dead
- jf @s_954
- wait 0
- Actor.RemoveReferences(0@)
- 009B: destroy_actor 0@
- wait 500
- jump @S_11
复制代码 |
|