Trying to get a user's screen to go black for 2 seconds...
I'm useing screenfade....
But how do I get the duration to last for 2 seconds? I'm just not sure what "type" i.e. ms or s the message accepts... I'm doing: Create_ScreenFade( iAttacker, 2, (1<<10), (1<<12), 0, 0, 0, 255 ); Code:
Thanks, Josh |
i believe that the duration is in decisecs, so try 20 instead of 2
|
nope :/
|
i don't know why, but i would also try duration and holdtime both at 20
|
hehe yea i did that too :/ Been trying a bunch of diff. combos... My current solution is to loop a set_task at 0.1 seconds... it works but i'd prefer just giving it a longer time :/
|
This is a stock from superhero
Code:
and here is an example of it being used Code:
this ends up being a pretty quick red flash with a varying alpha ammount. Some colors are not allowed so you might want to try another color first (like the one I use here works for sure). Another option would be to use a message logger and then enable that cvar "fadetoblack". Catch that message and then replicate it. |
hehe, thats actually what ive got going on in my pokemod... another thing you could do is
Code:
message_begin(MSG_ONE,gmsgFade,{0,0,0},id)anyone got an answer, im curious now also. edit: jtp, i dont know if it was you i talked to, but with that, it still wouldnt go over 1 second. |
jtp10181: Let's say i input 50 decisecs (5 seconds) duration will be 1_125_899_906_842_624, doesn't seems to be correct. ;)
Below is the my method. For int seconds: Code:
For float and int seconds (a bit slower): Code:
|
yeah I don't know how the seconds works really, thats just what was in there when I started working on SH. Like I said, best bet would be to catch a message and then copy it.
|
| All times are GMT -4. The time now is 08:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.