| 09-17-2003, 09:29 PM | #1 |
Yes it is possable. Here is how (it will require a little jass, but not much) Using the GUI Custom Script, you can use my new cinematic function within the GUI and not need to use jass. first of all, insert this block of code into the map's header. When in the trigger editor, click on the map name on the upper left above all your triggers. That blank space is for custom functions, AKA the header file. Code:
// This function will take a player (p) and then turn on cinematic mode for this player function Dakan_CinOn takes player p returns nothing if (GetLocalPlayer() == p) then call ClearTextMessages() call ShowInterface(false, 1.5) call EnableUserControl(false) call EnableOcclusion(false) call FogMaskEnable(false) call FogEnable(false) call EnableWorldFogBoundary(false) endif endfunction // This function will take a player (p) and then turn off cinematic mode for this player function Dakan_CinOff takes player p returns nothing if (GetLocalPlayer() == p) then call ClearTextMessages() call ShowInterface(true, 1.5) call EnableUserControl(true) call EnableOcclusion(true) call FogMaskEnable(true) call FogEnable(true) call EnableWorldFogBoundary(true) endif endfunction Now to call these 2 functions, you need to use these lines: Code:
call Dakan_CinOn(ConvertedPlayer(1)) call Dakan_CinOff(ConvertedPlayer(1)) Where ConvertedPlayer(1) changes to the player# you want this to happen for. Enjoy. |
| 09-18-2003, 02:58 AM | #2 |
shameless bump. I dont feel people understand what we got here. Normaly, if a person tries to turn on cinematic mode, or letterbox mode for 1 player, but not another, that 1 player would get droped from the game (aka Desynced). Which made cinematics not work for just 1 player. It had to be all or none. I tore apart the blizzard function for the cinematic mode, and just took the needed elements to disable the game interface (letterbox mode), turn off the black mask, turn off the fog of war, user control. Basicly this is the cinematic mode, but without a desync. This will be very useful for Open RPG's for now 1 player can enable a quest, get a full cinema camera angles, transmisions and all without the desync. |
| 09-18-2003, 03:24 AM | #3 |
I didn't understand a word of that... |
| 09-18-2003, 03:35 AM | #4 |
If you don't understand about cinematic mode and desync, then this is not for you. In “noob� terms: This allows you to play a cinema in cinematic mode for only 1 player, instead of forcing every player to watch a cinema. |
| 09-18-2003, 09:21 AM | #5 |
This is a great find. |
| 09-18-2003, 02:28 PM | #6 |
Could you please copy it to the repository, I don't want this to disappear easily. |
| 09-18-2003, 03:18 PM | #7 |
I'll definitely add that to the next version of WE Unlimited. Thanks |
| 09-18-2003, 03:20 PM | #8 |
[Copied into repository] |
| 09-18-2003, 03:35 PM | #9 |
Wow. This is phenominally useful. I tried soemthing like this but it just got really screwed up after several attempts. Kudos. |
| 09-18-2003, 06:56 PM | #10 |
sweet find :D |
| 09-19-2003, 08:02 PM | #11 |
@Dakan: That's quite nice. Lol, a fake cinematic mode. Can't someone do this with GUI triggers? |
| 09-19-2003, 10:00 PM | #12 |
as far as i know call ShowInterface(false, 1.5) Doesn't exist as a GUI command, unless its named something else... ShowInterface() seems to go right to the game.dll I couldn't find it in any of the blizzard J files. The only thing I can see that is messing up the game sync is Cinematic mode changing the RandomSeed(0) Without that 1 line, it technally should work fine as the other stuff really shouldn't matter. But this works and its alot simpler. |
| 09-20-2003, 09:15 AM | #13 |
Yes, Random Seed is the main problem. But ShowInterface should already be in the GUI. I think that's what we call Letterbox Mode. Or am I wrong?://// |
| 09-21-2003, 04:41 AM | #14 |
letterbox in RoC changed the random seed also. It was similar to cin mode, but didnt mess with the fog and sound volume... if it changed in tft... im not sure.. |
| 09-21-2003, 05:29 AM | #15 |
Either way it is a good find and I'm sure we'll see it in alot of new maps. Aslong as it gets put out into the community. |
