Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   Death to Spies: Moment of Truth (http://forum.fulqrumpublishing.com/forumdisplay.php?f=157)
-   -   Got Codes? (http://forum.fulqrumpublishing.com/showthread.php?t=10637)

sniperspec 10-20-2009 03:01 AM

Got Codes?
 
So, after beating the game many times, I want to try playing it through with different uniforms, more exact; the Soviet Soldiers Uniform. I have the code to spawn it:
L_CreateItem Equipment.Wear:SovietSoldier
(add -console to end of shortcut directory)

Problem: So I can spawn the uniform, it falls behind the character in game but with a little glitch; when putting it on, it shows every soviet soldiers uniform: this be the soviet soldier/KGB with red band, soviet soldier with hat, soviet soldier with helmet, all at one time.

How can I spawn a specific soviet soldiers uniform without all the extras like the hat and helmet morphed into each other at one time?

Thanks for any help. Or just a response.

Liz Shaw 10-20-2009 04:10 AM

I've been trying to do that in the original DtS too, with the German Winter Soldiers...

OSS 10-20-2009 06:37 AM

Quote:

Originally Posted by sniperspec (Post 112298)
How can I spawn a specific soviet soldiers uniform without all the extras like the hat and helmet morphed into each other at one time?

You could try manually change uniform with lua methods:

Actor.ChangeActorSkin( Level.GetPlayer(), "SovietSoldier" );

and then disable hats & helmets:

Actor.EnableMesh( Level.GetPlayer(), "grm_helmet" , false );

some tags you can try:

grm_helmet
grm_cap
grm_shoulder
grm_coat
sol_equipment_lo

to run lua methods from console, first use '$', ex. :

$ Actor.ChangeActorSkin( Level.GetPlayer()... );

AHO 10-20-2009 08:51 AM

Quote:

Originally Posted by OSS (Post 112307)
to run lua methods from console, first use '$', ex. :

$ Actor.ChangeActorSkin( Level.GetPlayer()... );

Wow, this is interesting... :)

Jason 10-20-2009 11:30 AM

Quote:

$ Actor.ChangeActorSkin( Level.GetPlayer()... );
:o very interesting, how on earth did you know how to do that?

sniperspec 10-20-2009 11:36 PM

He is the best of the best...
Now to try this little technique.

sniperspec 10-21-2009 04:10 AM

Quote:

Originally Posted by OSS (Post 112307)
You could try manually change uniform with lua methods:

Actor.ChangeActorSkin( Level.GetPlayer(), "SovietSoldier" );

and then disable hats & helmets:

Actor.EnableMesh( Level.GetPlayer(), "grm_helmet" , false );

some tags you can try:

grm_helmet
grm_cap
grm_shoulder
grm_coat
sol_equipment_lo

to run lua methods from console, first use '$', ex. :

$ Actor.ChangeActorSkin( Level.GetPlayer()... );

Actor.ChangeActorSkin( Level.GetPlayer(), "SovietSoldier" );
This code Works well, but the second one:
Actor.EnableMesh( Level.GetPlayer(), "grm_helmet" , false );
does not work, when I put it in directly including the $ at the front, it does nothing, mabie you made a mistake in one of the words?

Still thanks for your help :-)

OSS 10-21-2009 06:32 AM

Quote:

Originally Posted by sniperspec (Post 112580)
Actor.EnableMesh( Level.GetPlayer(), "grm_helmet" , false );
does not work

yes, it's my mistake..
this tags was for germans, for player you could try this:

mesh_helmet
mesh_cap
mesh_shoulder
mesh_coat
sabg_equipment_down

so u must use:

Actor.EnableMesh( Level.GetPlayer(), "mesh_helmet" , false );

OSS 10-21-2009 06:33 AM

Quote:

Originally Posted by Jason (Post 112351)
:o very interesting, how on earth did you know how to do that?

just examining lua scripts...;)

AHO 10-21-2009 10:14 AM

Quote:

Originally Posted by OSS (Post 112595)
just examining lua scripts...;)

Yes, this way I learned much about dts scripting, while I was
creating my Enhancement addon. The scripts are very powerful....


All times are GMT. The time now is 05:17 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.