UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Black and White Filter before power

broken avatar :(
Created 10 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
4,309 views
broken avatar :(
×
broken avatar :(
Location: 00
Date Registered: 2 November 2016
Last active: 8 years ago
Posts
43
Respect
Forum Rank
Legless Crawler
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
natesmithzombies's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
natesmithzombies's Contact & Social LinksNSmithZombies
Don't hate me for asking as I know everyone hates the Black and White before power. What I want is for a set of trigger_use or trigger_damage to cause a black and white screen temporarily. I don't actually want it to be black and white before power activates, I just thought it'd be easier for people to understand what I meant by putting it in the title. I tried to search for the downed player script to see how its done when you are down but struggled to find the script.
broken avatar :(
×
broken avatar :(
Location: kp
Date Registered: 29 July 2015
Last active: 6 years ago
Posts
435
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
children should not be playing call of duty
Signature
⠀⠀⠀⣴⣴⡤
⠀⣠⠀⢿⠇⡇⠀⠀⠀⠀⠀⠀⠀⢰⢷⡗
⠀⢶⢽⠿⣗⠀⠀⠀⠀⠀⠀⠀⠀⣼⡧⠂⠀⠀⣼⣷⡆
⠀⠀⣾⢶⠐⣱⠀⠀⠀⠀⠀⣤⣜⣻⣧⣲⣦⠤⣧⣿⠶
⠀⢀⣿⣿⣇⠀⠀⠀⠀⠀⠀⠛⠿⣿⣿⣷⣤⣄⡹⣿⣷
⠀⢸⣿⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢿⣿⣿⣿⣿⣿
⠀⠿⠃⠈⠿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠿⠿⠿

⠀⢀⢀⡀⠀⢀⣤⠀⠀⠀⠀⠀⠀⠀⡀⡀
⠀⣿⡟⡇⠀⠭⡋⠅⠀⠀⠀⠀⠀⢰⣟⢿
⠀⣹⡌⠀⠀⣨⣾⣷⣄⠀⠀⠀⠀⢈⠔⠌
⠰⣷⣿⡀⢐⢿⣿⣿⢻⠀⠀⠀⢠⣿⡿⡤⣴⠄⢀⣀⡀
⠘⣿⣿⠂⠈⢸⣿⣿⣸⠀⠀⠀⢘⣿⣿⣀⡠⣠⣺⣿⣷
⠀⣿⣿⡆⠀⢸⣿⣿⣾⡇⠀⣿⣿⣿⣿⣿⣗⣻⡻⠿⠁
⠀⣿⣿⡇⠀⢸⣿⣿⡇⠀⠀⠉⠉⠉⠉⠉⠉⠁
×
Koan's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
Koan's Contact & Social Links_Koan_h-rmy website
Give trigger a targetname in radiant. For example "blackwhitetrig"

Make vision file that is black and white, call it something like "blackandwhite.vision"

Ascension vision before power (zombie_cosmodrome_nopower.vision):
Spoiler: click to open...
Code Snippet
Plaintext
r_reviveFX_Enable  "0"


r_filmMidStart                      "0.175375"
r_filmMidEnd                        "0.319313"
r_filmDarkFeather                   "0.900000"
r_filmLightFeather                  "0.887719"
r_filmColorTemp                     "7958.8779 7958.8779 7958.8779"
r_filmSaturation                    "0.0000 0.0000 0.0702"
r_filmDarkTint                      "0.7789 1.0313 0.9996"
r_filmMidTint                       "0.9261 0.9473 0.9996"
r_filmLightTint                     "0.9996 0.9996 1.0101"
r_filmBleach                        "0.0000 0.0000 0.0000"
r_filmContrast                      "1.0526 1.0526 1.0526"

r_sCurveShoulderStrength            "0.424563"
r_sCurveLinearStrength              "0.501750"
r_sCurveLinearAngle                 "0.119313"
r_sCurveToeStrength                 "0.022041"
r_sCurveToeNumerator                "0.003508"
r_sCurveToeDenominator              "0.225338"

r_bloomTintWeights                  "0.0491 0.0491 0.0491 0.0000"
r_bloomColorScale                   "0.5614 0.5614 0.5614 0.0000"
r_bloomTintScale                    "0.0000 0.0000 0.0000 1.0000"
r_bloomCurveBreakpoint              "0.5439 0.5439 0.5439 1.0000"
r_bloomCurveLoGamma                 "0.7602 0.6551 0.6551 1.0000"
r_bloomCurveHiGamma                 "1.0022 0.9660 1.0022 1.0000"
r_bloomExpansionControl             "0.5000 0.5000 0.5000 0.1000"
r_bloomExpansionWeights             "0.2011 0.1600 0.1600 0.1000"
r_bloomExpansionSource              "0.100000"
r_bloomBlurRadius                   "1.750000"
r_bloomPersistence                  "0.000000"

r_primaryLightUseTweaks             "1.000000"
r_primaryLightTweakDiffuseStrength  "1.719375"
r_primaryLightTweakSpecularStrength "1.578750"


r_bloomCurveLoBlack                 "0.1000 0.1000 0.1000 0.1000"
r_bloomCurveLoWhite                 "1.0000 1.0000 1.0000 1.0000"
r_bloomCurveLoRemapBlack            "0.1000 0.1000 0.1000 0.1000"
r_bloomCurveLoRemapWhite            "1.0000 1.0000 1.0000 1.0000"
r_bloomCurveHiBlack                 "0.1000 0.1000 0.1000 0.1000"
r_bloomCurveHiWhite                 "1.0000 1.0000 1.0000 1.0000"
r_bloomCurveHiRemapBlack            "0.1000 0.1000 0.1000 0.1000"
r_bloomCurveHiRemapWhite            "1.0000 1.0000 1.0000 1.0000"
r_filmHue                           "0.0000 0.0000 0.0000"

r_bloomStreakXLevels0               "0.3300 0.3300 0.3300 1.0000"
r_bloomStreakXLevels1               "0.0000 1.0000 0.0000 1.0000"
r_bloomStreakXInnerTint             "1.0000 1.0000 1.0000"
r_bloomStreakXOuterTint             "1.0000 1.0000 1.0000"
r_bloomStreakXTintControl           "0.3300 0.3300 0.3300 1.0000"
r_bloomStreakXTint                  "0.0000 0.0000 0.0000"

r_bloomStreakYLevels0               "0.1193 0.0351 0.1193 1.0000"
r_bloomStreakYLevels1               "0.0000 1.0000 0.0000 1.0000"
r_bloomStreakYInnerTint             "1.0000 1.0000 1.0000"
r_bloomStreakYOuterTint             "1.0000 1.0000 1.0000"
r_bloomStreakYTintControl           "0.3300 0.3300 0.3300 0.6421"
r_bloomStreakYTint                  "0.0000 0.0561 0.0491"
^ Bear in mind that might not work directly in WaW, might have to tweak it, i cba to do that

There's probably a more efficient way to write this but it's the basic idea:

Code Snippet
Plaintext
vision_trig_wait()
{
vis_trig = getent("blackwhitetrig","targetname");
while(1)
{
vis_trig waittill("trigger",player);
player thread vision_trig_set();
}
}

vision_trig_set()
{
self VisionSetNaked("blackandwhite");
wait 30;
self VisionSetNaked("zombie_factory");
}

Thread first function in your nazi_zombie_mapname.gsc or something, idk

If a scripter sees this and cringes, please correct me :))

Edit:
Spoiler: click to open...
lilrifa sent this to me in chat, cause I only made it set vision for one player, this sets it for all:
Code Snippet
Plaintext
vision_trig_wait()
{
    vis_trig = getent("blackwhitetrig","targetname");
    vis_trig waittill("trigger",player);
   
    players = get_players();
    for(i=0;i<players.size;i++) {
        players[i] vision_trig_set();
    }
}
 
vision_trig_set()
{
    self VisionSetNaked("blackandwhite");
    wait 30;
    self VisionSetNaked("zombie_factory");
}
Last Edit: December 27, 2015, 07:12:25 pm by Koan
broken avatar :(
×
broken avatar :(
Location: kp
Date Registered: 29 July 2015
Last active: 6 years ago
Posts
435
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
children should not be playing call of duty
×
Koan's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
Koan's Contact & Social Links_Koan_h-rmy website
I will try this out and mark it as best answer when I get it to work! Thanks a ton man! I will give you credit in the map description :)

Might need to tweak it a little to get it to work how you want, but that shouldn't be hard :D
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 25 January 2015
Last active: 8 years ago
Posts
8
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
SGT. FUNNY MAN's Contact & Social Links
So where exactly do i put the code in nazi_zombie_MAPNAME.gsc? i dont want to screw up my map but i really want the black and white filter
Any reply would be nice  :)
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 5 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
FYI,
This script needs more work just for being downed in coop, I think. The vision file will be set to zombie_factory after getting back up, prob is solo revive too if you have it.

So where exactly do i put the code in nazi_zombie_MAPNAME.gsc? i dont want to screw up my map but i really want the black and white filter
Any reply would be nice  :)
Check this out form some scripting basics and this and this  The functions would be pasted at the bottom of your mapname.gsc in this case. thread from above zombiemode::main
Last Edit: February 02, 2016, 09:33:15 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 25 January 2015
Last active: 8 years ago
Posts
8
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
SGT. FUNNY MAN's Contact & Social Links
thanks  :)

 
Loading ...