Guest User

Render fix

a guest
Nov 1st, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include "zcommon.acs"
  2. #import "ZMGAME.acs"
  3. #include "CONST.acs"
  4. #import "COMMON.acs"
  5. #import "FUNCTION.acs"
  6.  
  7. #define SOFTWARE_PLAYER 0 //needed to prevent error
  8.  
  9. function int GetPlayerRender(void) //render checker
  10. {
  11. return GetCVar ("vid_renderer");
  12. }
  13.  
  14. script 2 (int x) clientside //Software users get some different lights with this
  15. {
  16. if(getplayerrender()==SOFTWARE_PLAYER)
  17. {
  18. if(x==false)
  19. {
  20. Light_ChangeToValue(TAG,128); //i'd say change to 128 since that shows just enough
  21. }
  22. else if(x==true)
  23. Terminate;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment