CLEO,请问有哪里错误了吗?
本帖最后由 mika 于 2016-10-23 04:12 编辑我实在找不到原因。我是这样想的,进入红圈后,触发剧情,GoToSH.s:进入电影模式然后视角都朝着CJ,CJ开始打电话,然后对话,挂电话,关闭电影模式,视角恢复正常。InTheSH.s:然后刷出车辆#GLENDALE 视角从CJ的位置朝向车的位置然后CJ进入车后就出现背景音乐到音乐结束后瞬移到SH(某地方)。
可事实呢!进入红圈后,进入电影模式任务的标题也刷出来了这是GoToSH.s的内容都还没完,视角直接就转到车的位置了也就是直接跳到InTheSH.s里的内容了,车都还没刷出来视角到那里就死机了。求大家帮忙看看哪里错误了,新手不注意细节。
这是加载GoToSH和InTheSH以及其他子线程的cs里的某段。 jf=else_jump也就是没有就跳转jt也就是跳转对不起了各位帮忙看一下,我太懒了不想上色。
CS文件:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
thread 'MIKA'
:MIKA_11
wait 0
if
$ONMISSION == 0
else_jump @MIKA_11
jt @MIKA_40
:MIKA_40
wait 0
03BC: 1@ = create_sphere_at 2507.964 -1673.228 13.37742 radius 3.0
jt @MIKA_76
:MIKA_76
wait 0
if
$ONMISSION == 0
else_jump @MIKA_76
jt @MIKA_105
:MIKA_105
wt 0
if
Player.Defined($PLAYER_ACTOR)
else_jump @MIKA_105
jt @MIKA_132
:MIKA_132
wt 0
if
00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 2507.964 -1673.228 13.37742 radius 2.8 2.8 0.5
else_jump @MIKA_132
jt @MIKA_191
:MIKA_191
wait 0
03BD: destroy_sphere 1@
jt @MIKA_207
:MIKA_207
wait 10
0A92: create_custom_thread "THEPLOT\MIKA\GOTOSH.S"
jt @MIKA_244
:MIKA_244
wait 0
0ABA: end_custom_thread_named 'GOTOSH.S'
jt @MIKA_274
:MIKA_274
wait 10
0A92: create_custom_thread "THEPLOT\MIKA\INTHESH.S"
jt @MIKA_312
:MIKA_312
wait 10
0ABA: end_custom_thread_named 'INTHESH.S'
jt @MIKA_342
:MIKA_342...
-------------------------------------------------------------------------------------------------------------------------------------------------------
这是上面cs文件所用到的子线程GoToSH.s文件里面的所有内容。
S文件:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO.s}
//-------------MAIN---------------
thread 'MIKA'
wait 0
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
00C0: set_current_time_hours_to 3 minutes_to 0
jt @MIKA_46
:MIKA_46
wait 0
00BA: show_text_styled GXT 'SD1' time 1000 style 2
wait 1000
jt @MIKA_78
:MIKA_78
wait 0
02A3: enable_widescreen 1
Camera.SetPosition(1@, 2@, 3@, 0.0, 0.0, 0.0)
Camera.PointAt(1@, 2@, 3@, 2)
wait 1000
0729: AS_actor $PLAYER_ACTOR hold_cellphone 1
wait 3000
00BC: show_text_highpriority GXT 'SD2' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'SD3' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'SD4' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'SD5' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'SD6' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'SD7' time 3000 flag 1
wait 3000
00BC: show_text_highpriority GXT 'SD8' time 3000 flag 1
wait 3000
0729: AS_actor $PLAYER_ACTOR hold_cellphone 0
wait 1000
00BC: show_text_highpriority GXT 'SD9' time 3000 flag 1
wait 1000
02A3: enable_widescreen 0
Camera.Restore_WithJumpCut
jt @MIKA_335
:MIKA_335
wait 0
0A93: end_custom_thread
-------------------------------------------------------------------------------------------------------------------------------------------------------
这里是第二个子线程S文件InTheSH.s文件里面的所有内容
S文件:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO.s}
//-------------MAIN---------------
thread 'MIKA'
wait 0
jt @MIKA_22
:MIKA_22
wait 0
Model.Load(#GLENDALE)
038B: load_requested_models
jt @MIKA_40
:MIKA_40
wait 0
if
Model.Available(#GLENDALE)
jf @MIKA_40
jt @MIKA_67
:MIKA_67
wait 0
if
$ONMISSION == 0
jf @MIKA_67
jt @MIKA_96
:MIKA_96
wait 0
0@ = Car.Create(#GLENDALE, 2440.073, -1664.693, 13.50156)
Car.Health(0@) = 1500
Car.DoorStatus(0@) = 0
09E9: car 0@ set_single_nitro
Car.SetImmunities(0@, 1, 1, 1, 0, 1)
jt @MIKA_165
:MIKA_165
wait 0
02A3: enable_widescreen 1
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
Camera.SetPosition(1@, 2@, 3@, 0.0, 0.0, 0.0)
Camera.OnVehicle(0@, 18, 1)
wait 500
00BC: show_text_highpriority GXT 'SS1' time 3000 flag 1
wait 3000
Camera.Restore_WithJumpCut
02A3: enable_widescreen 0
jt @MIKA_261
:MIKA_261
wait 0
1@ = Audiostream.Load("CLEO\SH\OV.MP3")
Audiostream.PerformAction(1@, PLAY)
wait 99000
jt @MIKA_307
:MIKA_307
wait 0
Car.PutAt(0@, 1971.551, 39.84048, 32.32956)
Actor.PutAt($PLAYER_ACTOR, 1971.551, 39.84048, 32.32956)
wait 1000
02A3: enable_widescreen 1
Camera.SetPosition(1@, 2@, 3@, 0.0, 0.0, 0.0)
Camera.PointAt(2138.237, 33.27053, 27.32438, 1)
wait 500
00BC: show_text_highpriority GXT 'SS2' time 4000 flag 1
wait 4000
02A3: enable_widescreen 0
Camera.Restore_WithJumpCut
wait 1000
02A8: 3@ = create_marker 0 at 2160.668 41.50162 29.26468
if
00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 2160.668 41.50162 29.26468 radius 30.0 30.0 30.0
jf @MIKA_307
Marker.Disable(3@)
sms "IN THE SILENT HILL"
jt @MIKA_546
:MIKA_546
wait 0
0A93: end_custom_thread
105标签
那个是player.开头的,是要player char 不是player actor
actor是模型,char是控制权
然后是第二个s文件
261已经设定了1@是音效
然后也没释放什么的
到下面307标签就直接设定了视角Camera.SetPosition(1@, 2@, 3@, 0.0, 0.0, 0.0)
应该就这两个问题了 NEST- 发表于 2016-10-23 12:38
105标签
那个是player.开头的,是要player char 不是player actor
actor是模型,char是控制权
谢了!NPC
页:
[1]