| 07:40:46 3 February 2013
On forum: 01/28/2013
Message edited by:
Hello everyone !|
Just for the story:
At first I wanted to use the 'invisibility suit' (meceniy_outfit_new) created by Monnoroch that exists in the mod 'Narodnaya Soljanka DMX'.
For visual aspects, everything is good.
For the functions that manage the phenomenon of invisibility, here's what I found:
1° The 'meceniy_work.script' which contains de main code:http://pastebin.com/CCCyjqk5
2° In the '_g.script', there are lines that replace the original lines under the function 'IsStalker (object, class_id)' and addition of two new functions:
See lines 1112 to 1152:http://pastebin.com/16ZXzNFm
3° In the file 'db.script', adding of the lines for the variables. Lines 28 to 34.
4° In the file 'bind_stalker.script', adding of the line 'meceniy_work.set_invisible()' under the function 'actor_binder:update(delta)' (line 239). http://pastebin.com/sTFV57Yd
5° In gamedata - config - ui: adding lines 'cs_inviz' to create the window that displays messages.
I prefer to post the entire file on pastebin so you can see the code in its global context.
What results in the game?
When I load my saved game, all is ok. No crash.
When I put the meceniy suit, the white screen effect appears and my weapon is set in his holster. The message about invisibility also appears.
90 seconds before the end of the invisibility, the message is displayed on screen. Same thing when invisibility is ended.
Changing suit causes no crash and the weapon can be taken in hand again.
However, there are some minor problems with the messages:
Sometimes the messages are not relevant to the situation.
When you wear the invisibility suit and you put another outfit or no outfit at all, the messages are correct.
If you change your suit again, the messages no longer fit the new situation. They are identical to the first messages.
It did not matter. I displayed messages only to test the function.
The only important messages are those that warn you that 'you will soon be visible' and 'you are visible'.
So far, all is right.
But, when I approach enemies with this suit, there is no change. Enemies can detect me as fast (and easily) as when I wear another suit (and, of course, attack me).
It seems that the local variable 'range' does not work. I tried to switch to '0' (instead of '2'), but no difference in game.
I looked everywhere on the web but these files are specific to this mod and nobody talk about this function (yeah, I know, one or two posts on russian and polish site, but no further).
I opened and read all the scripts but I haven't found anything else that is related to one aspect of this function.
This is the reason why I decided trying to make a simpler function that made the player 'undetectable' by enemies until he is very close to them (+/- 10 meters).
Then, enemies detect automaticaly the player and attack him.
But I prefer the original version of the mod (the function that restricts invisibility in time is really nice and give a little stress in the game).
Voilà, voilà ... This is the story. A poor story.
With or without suit
With or without suit
I can't live
With or without suit ! U2 - 2013