Add friendly and enemy chams
Add 2 new chams settings (friendly only and all players) Add 2 new colors to visible_flags enum (friend_visible and friend_not_visible) Add friendly colors to glColor4f hook
This commit is contained in:
14
src/hooks.c
14
src/hooks.c
@@ -90,16 +90,26 @@ void h_glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a) {
|
||||
* Depending on the type of entity we are trying to render from there, and
|
||||
* depending on its visibility, we change this visible_mode variable. */
|
||||
switch (visible_mode) {
|
||||
case VISIBLE:
|
||||
case ENEMY_VISIBLE:
|
||||
r = 0.40f;
|
||||
g = 0.73f;
|
||||
b = 0.41f;
|
||||
break;
|
||||
case NOT_VISIBLE:
|
||||
case ENEMY_NOT_VISIBLE:
|
||||
r = 0.90f;
|
||||
g = 0.07f;
|
||||
b = 0.27f;
|
||||
break;
|
||||
case FRIEND_VISIBLE:
|
||||
r = 0.16f;
|
||||
g = 0.71f;
|
||||
b = 0.96f;
|
||||
break;
|
||||
case FRIEND_NOT_VISIBLE:
|
||||
r = 0.00f;
|
||||
g = 0.53f;
|
||||
b = 0.81f;
|
||||
break;
|
||||
case HANDS:
|
||||
/* Multiply by original func parameters for non-flat chams.
|
||||
* Credits: @oxiKKK */
|
||||
|
||||
Reference in New Issue
Block a user