Official Fulqrum Publishing forum

Official Fulqrum Publishing forum (http://forum.fulqrumpublishing.com/index.php)
-   Death to Spies (http://forum.fulqrumpublishing.com/forumdisplay.php?f=91)
-   -   A New DTS Enhancement Mod (http://forum.fulqrumpublishing.com/showthread.php?t=8842)

AHO 09-08-2009 07:50 PM

Quote:

Originally Posted by Liz Shaw (Post 98188)
I couldn't figure out what to do with the hex editor, so I haven't done anything new. Plus, I have other things on my plate. Actually, how can I place new items in rooms (eg. new clothes, new weapons)?

This is only possible via script commands e.g.

Level.CreateWorldItem( "wear:EmbassyAgent_1" , "equipment" , 821.00, 4.00, -368.00, 0.0, 0.0, 0.0, 'id_wear1' );
  1. "wear:EmbassyAgent_1" is the item you wanna spawn, the
    item names you can find inside the equipment.shadvs, weapons.shadvs etc.
  2. "equipment" is the library (class) name. Same as shadvs files I mentioned above
  3. 821.00, 4.00, -368.00 are the coordinates (x,y,z). You
    can aquire the current position via console command:
    pl_showpos.
  4. 0.0, 0.0, 0.0 I dunno, let it as it is
  5. 'id_wear1' is the id of the newly created item.
    Necessary but not used in case of spawning.
-AHO

Liz Shaw 09-09-2009 02:54 AM

Update:
  • I've been proof-reading all the Level LUAs.
  • I also changed a failed mission script from "Diplomat has been killed" to "Diplomat has been attacked", because if you knock him out, it's still classed as killing him.
  • It's now possible to steal the utility room key from one of the waiters without taking him out.
  • I added in a key to the diplomat's safe to save players from picking the lock. It's in the possession of the kissing guard.;)

In regards to wanting to place new clothes, I want to place a warden's uniform on the bed in the room near the conference hall in "Stronghold" to start with. AHO, can you please give me the coordinates of said bedroom?

AHO 09-10-2009 08:34 AM

Quote:

Originally Posted by Liz Shaw (Post 98438)
Update:
  • I've been proof-reading all the Level LUAs.
  • I also changed a failed mission script from "Diplomat has been killed" to "Diplomat has been attacked", because if you knock him out, it's still classed as killing him.
  • It's now possible to steal the utility room key from one of the waiters without taking him out.
  • I added in a key to the diplomat's safe to save players from picking the lock. It's in the possession of the kissing guard.;)
In regards to wanting to place new clothes, I want to place a warden's uniform on the bed in the room near the conference hall in "Stronghold" to start with. AHO, can you please give me the coordinates of said bedroom?

You can aquire the current position with the console command PL_ShowPos.

Liz Shaw 09-10-2009 09:58 AM

Have I done this right?

Level.CreateWorldItem( "wear:GermanYellow" , "equipment" , -60.064407, 0.906136, 555.986816, 0.0, 0.0, 0.0, 'id_wear1' );

AHO 09-10-2009 10:05 AM

Quote:

Originally Posted by Liz Shaw (Post 99054)
Have I done this right?

Level.CreateWorldItem( "wear:GermanYellow" , "equipment" , -60.064407, 0.906136, 555.986816, 0.0, 0.0, 0.0, 'id_wear1' );

This seems correct. But I did not test it. Are the new clothes shown
correctly? Maybe you have to correct the y-coordianate manually.

Note: the id at the end must be unique, so if you create another
item via this command it must have a different name.

PS: Why don't you post some screens shots of your work,
I'm very interessted in your results...

Liz Shaw 09-10-2009 11:32 AM

Quote:

Originally Posted by AHO (Post 99058)
This seems correct. But I did not test it. Are the new clothes shown
correctly? Maybe you have to correct the y-coordianate manually.

Note: the id at the end must be unique, so if you create another
item via this command it must have a different name.

PS: Why don't you post some screens shots of your work,
I'm very interessted in your results...

They don't show up, and I'm trying to place them on the bed like what you did. How do I manually adjust the y-coordinate. And as a confirmation, is "GermanYellow" the warden's uniform?

AHO 09-10-2009 11:48 AM

Quote:

Originally Posted by Liz Shaw (Post 99091)
1They don't show up, and I'm trying to place them on the bed like what you did. 1 /2 How do I manually adjust the y-coordinate. 3 And as a confirmation, is "GermanYellow" the warden's uniform?

It is not shown? Then you did something wrong

1. The game engine makes strange things, sometimes the spawned
item is in or under the ground. So try to change the y-coordinate
manually (the digit)
2. Just change the Number
3. Yes it is, just search in folder \players\ for the file if you are not sure

Liz Shaw 09-10-2009 01:14 PM

I got the warden's uniform to show up on the bed, but there's something wrong... I think I made up to three duplicates of the uniform in the same position.:grin:

Liz Shaw 09-17-2009 01:31 PM

How do I only make one warden's uniform appear on the bed instead of multiple uniforms in the same position?

Also, I tried to add a chef's uniform in the Embassy kitchen. However, when I attempted to test it, the level loads with Strogov in his camouflage clothes, without his weapons, under fire.

forlik 09-17-2009 06:24 PM

Quote:

Originally Posted by Liz Shaw (Post 102188)
How do I only make one warden's uniform appear on the bed instead of multiple uniforms in the same position?

Use one command Level.CreateWorldItem("wardenUniform", ...) instead of multiple.

Quote:

Originally Posted by Liz Shaw (Post 102188)
Also, I tried to add a chef's uniform in the Embassy kitchen. However, when I attempted to test it, the level loads with Strogov in his camouflage clothes, without his weapons, under fire.

Very strange. Is it a result of Level.CreateWorldItem("chefUniform", ...) command? Or you was trying to modify SWD file using hex-editor?


All times are GMT. The time now is 01:12 AM.

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