mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 19:33:20 +00:00
updates
This commit is contained in:
parent
a1b239f394
commit
6c0e7bc1f2
23 changed files with 726 additions and 108 deletions
|
@ -323,8 +323,8 @@ stock int L4D_SpawnCommonInfected(float vPos[3], float vAng[3] = { 0.0, 0.0, 0.0
|
|||
int entity = CreateEntityByName("infected");
|
||||
if( entity != -1 )
|
||||
{
|
||||
DispatchSpawn(entity);
|
||||
TeleportEntity(entity, vPos, vAng, NULL_VECTOR);
|
||||
DispatchSpawn(entity);
|
||||
}
|
||||
|
||||
return entity;
|
||||
|
@ -660,6 +660,19 @@ stock bool L4D_IsPlayerPinned(int client)
|
|||
return L4D_GetPinnedInfected(client) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Returns if a Survivor is being attacked in the Smokers arms
|
||||
*
|
||||
* @param client Client ID of the player to check
|
||||
*
|
||||
* @return Returns true if player has reached the Smoker, false otherwise
|
||||
*/
|
||||
stock bool L4D_HasReachedSmoker(int client)
|
||||
{
|
||||
// m_isHangingFromTongue sometimes returns 1 when still being dragged, using this instead
|
||||
return GetEntProp(client, Prop_Send, "m_reachedTongueOwner", 1) == 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// ==================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue