Skip to content

make spatial features of env_ambient_light work in asw - #1109

Merged
BenLubar merged 1 commit into
reactivedrop_betafrom
env-ambient-light-spatial-features
Sep 18, 2026
Merged

BenLubar merged 1 commit into
reactivedrop_betafrom
env-ambient-light-spatial-features

Conversation

@jhh8

@jhh8 jhh8 commented Sep 9, 2026

Copy link
Copy Markdown
Member

base player stays at spawn point...

base player stays at spawn point...

CBaseEntity *pPlayer = C_BasePlayer::GetLocalPlayer( 0 );
if( !pPlayer )
C_ASW_Inhabitable_NPC* pViewNPC = C_ASW_Player::GetLocalASWPlayer()->GetViewNPC();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a static function that does this? I'm a little bit worried about a potential crash from the local player being null for some reason.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my thoughts were it will probably crash all over different places in that case too

@BenLubar
BenLubar merged commit 128c9ec into reactivedrop_beta Sep 18, 2026
2 checks passed
@BenLubar
BenLubar deleted the env-ambient-light-spatial-features branch September 18, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants