mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-28 06:52:07 +00:00
Fix AT-ST usable hint icon
This commit is contained in:
parent
0c85ac4704
commit
5acadef11e
2 changed files with 8 additions and 3 deletions
|
@ -1699,6 +1699,11 @@ qboolean CanUseInfrontOf(gentity_t *ent)
|
||||||
|
|
||||||
target = &g_entities[trace.entityNum];
|
target = &g_entities[trace.entityNum];
|
||||||
|
|
||||||
|
if ( target && target->e_UseFunc == useF_misc_atst_use )
|
||||||
|
{
|
||||||
|
// Drivable AT-ST can be used only if player is standing on it.
|
||||||
|
return qfalse;
|
||||||
|
}
|
||||||
if ( target && target->client && target->client->NPC_class == CLASS_VEHICLE )
|
if ( target && target->client && target->client->NPC_class == CLASS_VEHICLE )
|
||||||
{
|
{
|
||||||
// Attempt to board this vehicle.
|
// Attempt to board this vehicle.
|
||||||
|
|
|
@ -1472,10 +1472,10 @@ qboolean CanUseInfrontOf(gentity_t *ent)
|
||||||
|
|
||||||
target = &g_entities[trace.entityNum];
|
target = &g_entities[trace.entityNum];
|
||||||
|
|
||||||
if ( target && target->client && target->client->NPC_class == CLASS_ATST )
|
if ( target && target->e_UseFunc == useF_misc_atst_use )
|
||||||
{
|
{
|
||||||
// Attempt to board this vehicle.
|
// Drivable AT-ST can be used only if player is standing on it.
|
||||||
return qtrue;
|
return qfalse;
|
||||||
}
|
}
|
||||||
//Check for a use command
|
//Check for a use command
|
||||||
if (ValidUseTarget( target )) {
|
if (ValidUseTarget( target )) {
|
||||||
|
|
Loading…
Reference in a new issue