GS-EntBase: prevent light entities from overriding the first built-in lightstyles.
worldspawn: Assign two more lightstyles that Half-Life registers.
This commit is contained in:
parent
1bd9a5ea01
commit
4322f1fd93
2 changed files with 4 additions and 2 deletions
|
@ -138,7 +138,7 @@ light::RestoreComplete(void)
|
|||
{
|
||||
if (m_iEnabled == 0) {
|
||||
lightstyle(m_flStyle, "a");
|
||||
} else {
|
||||
} else if (m_flStyle > 12) {
|
||||
lightstyle(m_flStyle, m_strPattern);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ ClientDisconnect(void)
|
|||
|
||||
/* this will hide/remove the player from other clients */
|
||||
player pl = (player)self;
|
||||
pl.SetModelindex(0);
|
||||
pl.Disappear();
|
||||
}
|
||||
|
||||
/** Called by the `kill` console command.
|
||||
|
@ -484,6 +484,8 @@ worldspawn(void)
|
|||
lightstyle(9, "aaaaaaaazzzzzzzz");
|
||||
lightstyle(10, "mmamammmmammamamaaamammma");
|
||||
lightstyle(11, "abcdefghijklmnopqrrqponmlkjihgfedcba");
|
||||
lightstyle(12, "mmnnmmnnnmmnn");
|
||||
lightstyle(63, "a");
|
||||
Skill_Init();
|
||||
|
||||
precache_model("models/error.vvm");
|
||||
|
|
Loading…
Reference in a new issue