• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Help with Camera and Cinimatics plz

Status
Not open for further replies.
Level 2
Joined
Jun 12, 2009
Messages
7
Ok, so basically i am making a Nazi Zombies map, i want for when a player gets hit his/her screen is tinted more and more red based on health.
So say red gets hit by a zombie and is at half health. I want so that red's screen, and only red's screen gets a dark red "dream" filter that fades as their health regenerates. Please help!
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,264
You will probably need to use GetLocalPlayer() to show the filters locally to only 1 player.
GetLocalPlayer() returns the player who is running an instance of a session (an asyncrnious value). This means only human players get returned and the player returned is unique for each human player in the game session. If Player(0) and Player(1) were active humans in the same multiplayer game then it would return Player(0) on Player(0)'s computer and Player(1) on Player(1)'s computer. As the value is not syncrnious, incorrect use will cause an out of sync map split (an example of bad use of GetLocalPlayer is making a unit for that player as the unit will be owned by different players which could alter the result of conflicts).

Remember that filters hide tooltips so are very annoying if on permantly.

Also avoid "Nazi" maps, that is rather politically incorrect.
 
Level 7
Joined
Dec 29, 2008
Messages
252
You will probably need to use GetLocalPlayer() to show the filters locally to only 1 player.
GetLocalPlayer() returns the player who is running an instance of a session (an asyncrnious value). This means only human players get returned and the player returned is unique for each human player in the game session. If Player(0) and Player(1) were active humans in the same multiplayer game then it would return Player(0) on Player(0)'s computer and Player(1) on Player(1)'s computer. As the value is not syncrnious, incorrect use will cause an out of sync map split (an example of bad use of GetLocalPlayer is making a unit for that player as the unit will be owned by different players which could alter the result of conflicts).

Remember that filters hide tooltips so are very annoying if on permantly.

Also avoid "Nazi" maps, that is rather politically incorrect.

sounds complex. as for being politically correct, i think nazi zombies is a video game that a company made due to falling to the demands of the mindless 12 year olds
 
Level 2
Joined
Jun 12, 2009
Messages
7
haha yes you are correct about the video game and that mode is called Nazi Zombies so i didn't want to alter it but how would i use GetLocalPlayer()?
thank you for responding so quickly too
+ rep
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,264
GetLocalPlayer() returns the player who is running an instance of a session (an asyncrnious value). This means only human players get returned and the player returned is unique for each human player in the game session. If Player(0) and Player(1) were active humans in the same multiplayer game then it would return Player(0) on Player(0)'s computer and Player(1) on Player(1)'s computer. As the value is not syncrnious, incorrect use will cause an out of sync map split (an example of bad use of GetLocalPlayer is making a unit for that player as the unit will be owned by different players which could alter the result of conflicts).

Use it to adapt some code to match your problem specification. Generally this is done by comparing it to a player to get a boolean capable of altering program flow via a branch statement or by checking if it is in a force to get a boolean to do the same thing. It can also be used as a short cut for running an action for all players as long as the action does not alter syncrnious values. Avoid creating strings and handle objects (expection of floating text) locally as that will cause a split.
 
Status
Not open for further replies.
Top