arezey

Untitled

Feb 26th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. for (int i = 0; i < MAXPLAYERS; i++) {
  2. tid = 3800+i;
  3. // [...]
  4.  
  5. // Flicker friendly stealths
  6. int teammate = (GetPlayerInfo (i, PLAYERINFO_TEAM) == ConsoleTeam ()) || !PlayerInGame (consoleplayer);
  7. if (teammate && i != consoleplayer && (CheckActorInventory (tid, "StealthMode") == 2)) {
  8. SetActorProperty (tid, APROP_RenderStyle, STYLE_Translucent);
  9. SetActorProperty (3800+i, APROP_Alpha, 0.6);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment