Skip to content

Commit

Permalink
Add missing EV_CanSeeNoEnts
Browse files Browse the repository at this point in the history
The `canseenoents` was accidentally missing from the Entity's response list, some scripts rely on it
  • Loading branch information
smallmodel committed Jan 8, 2025
1 parent cd65424 commit e0735fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/fgame/entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,8 @@ Event EV_CanSee
"returns 1 if the entities can see eachother, 0 if not",
EV_RETURN
);

// Added in 2.0
Event EV_CanSeeNoEnts
(
"canseenoents",
Expand All @@ -1226,6 +1228,7 @@ Event EV_CanSeeNoEnts
"returns 1 if the entities can see eachother, 0 if not; ignores any entities between them",
EV_RETURN
);

Event EV_Entity_InPVS
(
"inpvs",
Expand Down Expand Up @@ -1628,6 +1631,7 @@ CLASS_DECLARATION(SimpleEntity, Entity, NULL) {
{&EV_IsTouching, &Entity::IsTouching },
{&EV_IsInside, &Entity::IsInside },
{&EV_CanSee, &Entity::CanSee },
{&EV_CanSeeNoEnts, &Entity::CanSeeNoEnts }, // Added in 2.0
{&EV_Entity_InPVS, &Entity::EventInPVS },
{&EV_SetShaderData, &Entity::SetShaderData },
{&EV_GetVelocity, &Entity::GetVelocity },
Expand Down

0 comments on commit e0735fa

Please sign in to comment.