Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Death to Spies

Death to Spies Stealth action. Professional spy working for the Soviet counterintelligence service executes dangerous operations in the heart of German territory.

Reply
 
Thread Tools Display Modes
  #441  
Old 02-05-2010, 11:11 AM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 556
Default

Further attempts at doing this have resulted in a syntax error. What have I done wrong here?

Code:
function Level.FindActor
    local radist = Level.FindActor('ZS29);
    if ( radist != nil ) then       
       Actor.EnableMesh( radist, "grm_cap" , false );
    end;
  end

  function Level.FindActor
    local radist = Level.FindActor('ZS30);
    if ( radist != nil ) then       
       Actor.EnableMesh( radist, "grm_cap" , false );
    end;
  end
Reply With Quote
  #442  
Old 02-05-2010, 12:50 PM
forlik's Avatar
forlik forlik is offline
Approved Member
 
Join Date: Nov 2008
Location: Minsk, Belarus
Posts: 450
Default

Quote:
Originally Posted by Liz Shaw View Post
Further attempts at doing this have resulted in a syntax error. What have I done wrong here?
Code:
function Level.FindActor
    local radist = Level.FindActor('ZS29');
    if ( radist != nil ) then       
       Actor.EnableMesh( radist, "grm_cap" , false );
    end;
  end

  function Level.FindActor2
    local radist = Level.FindActor('ZS30');
    if ( radist != nil ) then       
       Actor.EnableMesh( radist, "grm_cap" , false );
    end;
  end
1. ID should be surrounded with ''
2. Each function should have unique name
Reply With Quote
  #443  
Old 02-05-2010, 01:44 PM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 556
Default

I can't do this at all! I'm sending you what I'm trying to do. Seems you have more of a knowledge of this than me...
Attached Files
File Type: zip uboat.lua.zip (21.1 KB, 3 views)
Reply With Quote
  #444  
Old 02-05-2010, 02:09 PM
forlik's Avatar
forlik forlik is offline
Approved Member
 
Join Date: Nov 2008
Location: Minsk, Belarus
Posts: 450
Default

Quote:
Originally Posted by Liz Shaw View Post
I can't do this at all! I'm sending you what I'm trying to do. Seems you have more of a knowledge of this than me...
Additional errors:
1. You create function in function. It's not allowed.
2. There are no actor with ID 'ZS29'

Try this lua: Uboat.zip

I can't test it in game just now, but it should work.
Reply With Quote
  #445  
Old 02-05-2010, 02:25 PM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 556
Default

It works! One of them has his képi removed, but it also means that the other one has an unknown ID. He is registered in the SWD as "GermanSoldierZ29", so I thought it was obvious that his ID was "ZS29".

In other news, Strogov now wears the doctor's clothes in Renegades - Haggard Games already gave the doctor his nude texture and pass zone restrictions, but for some reason Strogov can't take his clothes until now. It was easy to do, since the Soviet doctor's clothes are a fourth scientist skin.
Reply With Quote
  #446  
Old 02-06-2010, 05:20 AM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 556
Default

Is there a similar way to change an actor's skin?
Attached Images
File Type: jpg shad_06_02_2010_13-53-06_000.JPG (82.7 KB, 13 views)
Reply With Quote
  #447  
Old 02-06-2010, 07:58 AM
forlik's Avatar
forlik forlik is offline
Approved Member
 
Join Date: Nov 2008
Location: Minsk, Belarus
Posts: 450
Default

Quote:
Originally Posted by Liz Shaw View Post
He is registered in the SWD as "GermanSoldierZ29", so I thought it was obvious that his ID was "ZS29".
No, his ID "GZ29".

Quote:
Originally Posted by Liz Shaw View Post
Is there a similar way to change an actor's skin?
Something like this: Actor.SetSkin(actor, skin)
Try to search "SetSkin" in lua files.
Reply With Quote
  #448  
Old 02-06-2010, 10:24 AM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 556
Default

Once again, it works! As a cherry on top, whenever Strogov puts on the spare submariner's uniform in King's Riddle, he automatically has the second sailor skin. I did the same thing with the spare doctor's suit in Dora.
Attached Images
File Type: jpg shad_06_02_2010_21-06-42_000.JPG (83.6 KB, 11 views)
File Type: jpg shad_06_02_2010_21-16-55_000.JPG (70.2 KB, 11 views)
Reply With Quote
  #449  
Old 02-07-2010, 01:44 AM
Liz Shaw's Avatar
Liz Shaw Liz Shaw is offline
Approved Member
 
Join Date: Oct 2008
Posts: 556
Default

UPDATE:

All radio operators in Lightning have their models changed to those from Polish Surprise.

forlik, how can you tell an NPC's ID outside the LUA file? This guy's registered in the SWD as "GermanSoldier173".
Attached Images
File Type: jpg shad_07_02_2010_13-40-49_000.JPG (87.5 KB, 10 views)
Reply With Quote
  #450  
Old 02-07-2010, 09:32 AM
forlik's Avatar
forlik forlik is offline
Approved Member
 
Join Date: Nov 2008
Location: Minsk, Belarus
Posts: 450
Default

Quote:
Originally Posted by Liz Shaw View Post
forlik, how can you tell an NPC's ID outside the LUA file? This guy's registered in the SWD as "GermanSoldier173".
GermanSoldier173 has empty ID (black area). ID is stored in SWD after 0x3D bytes (yellow area) after the entity name (green area).
You can create ID yourself. Just fill black area with 4-bytes ID in reverse form.
For example, 'S173' should be saved as '371S'. After that you can use this ID in lua: Level.FindActor('S173').
ID should be unique.
Attached Images
File Type: jpg swd1.jpg (52.7 KB, 11 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:56 PM.


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