Jump to content


Photo

How to


  • Please log in to reply
10 replies to this topic

#1 Okapi

Okapi
  • Members
  • 8 posts
  • Location:Stalingrad

Posted 06 December 2010 - 04:22 PM

Hello all,

I have a question about a script of Commandos 3, how can I make an enemy soldier or allied soldier stand up/lay down/squat ?

Guess it's one single line what is the solution but I have no idea what line of text it is.

Thanks for your help,

Okapi.

#2 Resstnc

Resstnc
  • Members
  • 31 posts

Posted 06 December 2010 - 07:36 PM

you can't run enemy soldiers and stand up or move in game.

Edited by Resstnc, 06 December 2010 - 07:37 PM.

----------------------------------------

Posted Image


Visit Steam Forum
Commandos Collection on Steam

#3 Okapi

Okapi
  • Members
  • 8 posts
  • Location:Stalingrad

Posted 06 December 2010 - 10:16 PM

I don't want to move the soldier by myself. If I place one in a level he just stands, I would like him to lay down or squat.

#4 Resstnc

Resstnc
  • Members
  • 31 posts

Posted 07 December 2010 - 09:01 AM

ok. you must edit the .gsc files.

add soldier for .mis file eg token alefus_13214
add soldier for .gsc file
eg
.LISTA_GRUPOS
(

[
.NOMBRE alefus_13214
.MIEMBROS
(
alefus_13214
)
.SCRIPTS
(

[
.NOMBRE alefus_13214
.CRISELBI
(
BICHO alefus_13214
)
.SIMPLE 1.0
.ORDENES
(

! SET_ESTADO_LOGICO AGACHADO (moves, standup etc)
)
]
)
.SCRIPT_DE_GRUPO
[
.ORDENES
(

! LANZAR_SCRIPT alefus_13214
)
]
]
----------------------------------------

Posted Image


Visit Steam Forum
Commandos Collection on Steam

#5 Okapi

Okapi
  • Members
  • 8 posts
  • Location:Stalingrad

Posted 07 December 2010 - 04:39 PM

[
.LISTA_GRUPOS
(

[
.NOMBRE Huis_Sniper
.MIEMBROS
(
Huis_Sniper
)
.SCRIPTS
(

[
.NOMBRE Huis_Sniper
.CRISELBI
(
BICHO Huis_Sniper
)
.SIMPLE 1.0
.ORDENES
(

! SET_ESTADO_ESPECIAL NINGUNO
)
]
)
.SCRIPT_DE_GRUPO
[
.ORDENES
(

! LANZAR_SCRIPT Huis_Sniper
)
]
]

He still stands.

Edit : When I add this to the file all the enemies stand still ( Protect General O'Donnal ) and doesn't move at all

Edited by Okapi, 07 December 2010 - 05:41 PM.


#6 Resstnc

Resstnc
  • Members
  • 31 posts

Posted 07 December 2010 - 07:41 PM

add the ordenes

! IRAPOS
(
517.0 122.0 -135.0 EXTERIOR (moved places)
)AGACHADO
! SET_ANGULO 145.0

----------------------------------------

Posted Image


Visit Steam Forum
Commandos Collection on Steam

#7 Okapi

Okapi
  • Members
  • 8 posts
  • Location:Stalingrad

Posted 08 December 2010 - 10:36 AM

Doesn't have any good effect. All enemy soldiers stands still and doesn't move and the sniper whos standing on a house isn't laying down.
Looks like I cannot change anything in the .gsc file or else the hole level is broken.

#8 Haart

Haart
  • Members
  • 35 posts
  • Location:Russia

Posted 08 December 2010 - 11:46 AM

Edit : When I add this to the file all the enemies stand still ( Protect General O'Donnal ) and doesn't move at all


It means that there are some errors somewhere in your code.

This is an example of the 100% working code:

CODE

[
.NOMBRE TEST_SCRIPT
.MIEMBROS
(
name_of_your_soldier_here
)
.SCRIPTS
(

[
.NOMBRE SCRIPT01
.CRISELBI
(
BICHO name_of_your_soldier_here
)
.SIMPLE 1.0
.ORDENES
(
! SET_ESTADO_LOGICO AGACHADO
)
]
)
.SCRIPT_DE_GRUPO
[
.ORDENES
(
! LANZAR_SCRIPT SCRIPT01
)
]
]

You can upload your GSC file here. I'll fix it for you.

Edited by Haart, 08 December 2010 - 03:12 PM.


#9 wyel2000

wyel2000
  • Members
  • 207 posts

Posted 08 December 2010 - 12:26 PM

(Tr1) The Baptism Of Fire-----TU01.GSC
[
			.NOMBRE COMANDOS 
			.MIEMBROS 
			(
				RATERO ARTIFICIERO 
			)
			.SCRIPTS 
			(
				
				[
					.NOMBRE RATERO 
					.CRISELBI 
					(
						BICHO RATERO 
					)
					.SIMPLE  1.0 
					.ORDENES 
					(
						
						! SET_ESTADO_LOGICO AGACHADO 
					)
				]
				[
					.NOMBRE ARTIFICIERO 
					.CRISELBI 
					(
						BICHO ARTIFICIERO 
					)
					.SIMPLE  1.0 
					.ORDENES 
					(
						
						! SET_ESTADO_LOGICO AGACHADO 
					)
				]
			)
			.SCRIPT_DE_GRUPO 
			[
				.ORDENES 
				(
					
					! LANZAR_SCRIPT RATERO 
					! LANZAR_SCRIPT ARTIFICIERO 
				)
			]
		]


[N2] DAS BOOT, DEATH MISSION-----TU02.GSC

CODE

[
.NOMBRE COMANDOS
.MIEMBROS
(
COMANDO RATERO
)
.SCRIPTS
(
[
.NOMBRE COMANDO
.CRISELBI
(
BICHO COMANDO
)
.SIMPLE 1.0
.ORDENES
(
! PON_ANIMSECUENCIA AUTODETENERSE
! : LOOP
! PON_ANIM_COSTUMBRISTA -1.0 AUTODETENIDO
! GOTO LOOP
)
]
[
.NOMBRE RATERO
.CRISELBI
(
BICHO RATERO
)
.SIMPLE 1.0
.ORDENES
(
! SET_ESTADO_LOGICO AGACHADO
)
]
)
.SCRIPT_DE_GRUPO
[
.ORDENES
(
! LANZAR_SCRIPT COMANDO
! LANZAR_SCRIPT RATERO
)
]
]

Edited by wyel2000, 08 December 2010 - 12:30 PM.


#10 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 469 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 08 December 2010 - 04:11 PM

I thought it would be easier to understand the code, if I translate it.
These are the .ORDENES from the soldier ALE_APOYO_03 (ST1.GSC) - just search for .NOMBRE DISPARA_ALE_APOYO_03

01	! IRAPOS ( 819 -379 0 EXTERIOR ) NORMAL CORRIENDO
02	! SET_ANGULO 55
03	! SET_ESTADO_LOGICO ARRODILLADO
04	! : RAFAGA03
05	! PON_ANIMSECUENCIA ARROD_APUNTAR_FUSIL
06	! LANZA_WAV_BICHO DRF2 ALE_APOYO_03
07	! PON_ANIMSECUENCIA ARROD_DISPARAR_FUSIL
08	! LANZA_WAV_BICHO DRF2 ALE_APOYO_03
09	! PON_ANIMSECUENCIA ARROD_DISPARAR_FUSIL
10	! PON_ANIMSECUENCIA ARROD_ENFUNDAR_FUSIL
11	! ESPERAR_TIEMPO 60
12	! GOTO RAFAGA03
Translated into English (loosely):
01	! MOVE_TO_POSITION ( 819 -379 0 EXTERIOR ) NORMAL RUNNING
02	! SET_ANGLE 55
03	! SET_POSTURE CROUCHING
04	! : DEFINE_LABEL RAFAGA03
05	! PLAY_ANIMATION CROUCHING_AIM_RIFLE
06	! PLAY_WAVE DRF2 ALE_APOYO_03
07	! PLAY_ANIMATION CROUCHING_SHOOT_RIFLE
08	! PLAY_WAVE DRF2 ALE_APOYO_03
09	! PLAY_ANIMATION CROUCHING_SHOOT_RIFLE
10	! PLAY_ANIMATION CROUCHING_PUTDOWN_RIFLE
11	! WAIT_TIME 60
12	! GOTO_LABEL RAFAGA03
Here's the changed code -> the soldier will lay down:
! IRAPOS ( 819 -379 0 EXTERIOR ) NORMAL CORRIENDO
! SET_ANGULO 55
! SET_ESTADO_LOGICO AGACHADO
! : RAFAGA03
! PON_ANIMSECUENCIA TUMBADO_APUNTAR_FUSIL
! LANZA_WAV_BICHO DRF2 ALE_APOYO_03
! PON_ANIMSECUENCIA TUMBADO_DISPARAR_FUSIL
! LANZA_WAV_BICHO DRF2 ALE_APOYO_03
! PON_ANIMSECUENCIA TUMBADO_DISPARAR_FUSIL
! PON_ANIMSECUENCIA TUMBADO_ENFUNDAR_FUSIL
! ESPERAR_TIEMPO 60
! GOTO RAFAGA03
lay_down.jpg

#11 Okapi

Okapi
  • Members
  • 8 posts
  • Location:Stalingrad

Posted 08 December 2010 - 05:20 PM

Thanks for all your help. It is a great succes.

[
			.NOMBRE Script11 
			.MIEMBROS 
			(
				ALE_APOYO_99994 
			)
			.SCRIPTS 
			(
				
				[
					.NOMBRE Scr11
					.CRISELBI 
					(
						BICHO ALE_APOYO_99994
					)
					.FLAGS_REACTIVIDAD 
					(
						
					)
					.SIMPLE  1.0 
					.ORDENES 
					(
						
						! SET_ESTADO_LOGICO AGACHADO
					)
				]
			)
			.SCRIPT_DE_GRUPO 
			[
				.ORDENES 
				(
					
					! LANZAR_SCRIPT Scr11
				)
			]
	]

This is the final code that works, thank you all :thumbsupsmiley:

Edit : You cannot let a soldier crouch while standing on a building, found it out right now.

Edited by Okapi, 08 December 2010 - 05:34 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users