Raised This Month: $ Target: $400
 0% 

Solved [L4D2] Spawn ghost infected players - Issue


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 09-13-2022 , 01:45   [L4D2] Spawn ghost infected players - Issue
Reply With Quote #1

Hello guys,

I have been trying to spawn dead infected into the spawnable ghost form, but with no luck

tried to manipulate with these EntProps but still:

PHP Code:
//SetEntProp(client, Prop_Send, "m_isGhost", 1);
//SetEntProp(client, Prop_Send,  "m_lifeState", 1);
//SetEntProp(client, Prop_Send, "m_ghostSpawnState", 0); 
This is the script

PHP Code:
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

#pragma semicolon 1
#pragma newdecls required

public void OnPluginStart()
{
    
RegConsoleCmd("sm_boomer"Command_Boomer"Spawn as a boomer ghost");
}

public 
Action Command_Boomer(int clientint args)
{
    if (
GetClientTeam(client) == && !IsPlayerAlive(client))
    {
        
int CmdFlags GetCommandFlags("z_spawn_old");
        
SetCommandFlags("z_spawn_old"CmdFlags & ~FCVAR_CHEAT);
        
FakeClientCommand(client"z_spawn_old boomer auto");
    }
    else 
PrintToChat(client"only dead infected can use this command");

__________________

Last edited by alasfourom; 09-14-2022 at 01:59.
alasfourom is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode