Jump to content

Splinter Cell Conviction gameplay - need help


sagittarius22

Recommended Posts

I am trying to make an alternative to the VATS system by implementing the same thing there is in SC Conviction.

But when I press the key, my game crashes. Can someone help me?

 


scn SAGMortalReflexSCRIPT

short VatsKey
ref Enemy
ref CurrentWeapon
short Once

Begin Gamemode

set CurrentWeapon to player.getequippedobject 5
set Enemy to GetFirstRef
set Vatskey to 2
label 1
if (iskeypressed VatsKey) && Once==0

if (Enemy.getshouldattack player>0)
 if (player.getlos Enemy)
    player.useweapon CurrentWeapon player Enemy 1
    set Once to 1
     player.look enemy
 endif
elseif Enemy.getshouldattack player==0
set Enemy to GetNextRef
goto 1
endif
endif
endif

if iskeypressed vatskey==0
set once to 0
player.stoplook enemy
endif
End




 

Edited by sagittarius22
Link to comment
Share on other sites

I tried a new script:

 


scn SAGMortalReflexSCRIPT

short VatsKey
ref Enemy
ref CurrentWeapon
short Once

Begin Gamemode

set CurrentWeapon to player.getequippedobject 5
set Enemy to GetFirstRef 200 2
set Vatskey to 2
label 1
if (iskeypressed VatsKey) && Once==0

if enemy==player
goto 1
set enemy to getnextref
endif
if (Enemy.getshouldattack player>0)
 if (player.getlos Enemy)
    player.useweapon CurrentWeapon player Enemy 1
    set Once to 1
     player.look enemy
 endif
elseif Enemy.getshouldattack player==0
set Enemy to GetNextRef
goto 1
endif
endif
endif

if iskeypressed vatskey==0
set once to 0
player.stoplook enemy
endif
End


 

Still does not work :(

Link to comment
Share on other sites

Try it on a different key.

If the game is entering VATS mode then running an animation on the player at the same time is probably asking for trouble.

Still crashes :/

Link to comment
Share on other sites

I don't think you can have two GetNexRefs in the same loop, and you need the 'apple bug' fix in there.

 

scn SAGMortalReflexSCRIPT

short VatsKey
ref Enemy
ref CurrentWeapon
short Once

Begin Gamemode

set CurrentWeapon to player.getequippedobject 5
set Enemy to GetFirstRef 200 1
set Vatskey to 2
label 1
if (iskeypressed VatsKey) && Once==0

if enemy==player
elseif (Enemy.getshouldattack player>0)
	if (player.getlos Enemy)
		if (CurrentWeapon)
			player.useweapon CurrentWeapon player Enemy 1
			set Once to 1
			player.look enemy
		endif
	endif
endif
set Enemy to Pencil01
set Enemy to GetNextRef
goto 1


endif


if iskeypressed vatskey==0
set once to 0
player.stoplook enemy
endif
End

Link to comment
Share on other sites

Thanks I'll try it. What's the apple bug fix?

There's some bug where calling GetNextRef with Enemy equal to the previously found REF would cause a malfunction, so you set Enemy to something arbitrary before calling GetNetRef (In Oblivion they used the apple).

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...