View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-30-2021 , 13:07   Re: [L4D & L4D2] Left 4 DHooks Direct (1.42) [23-Jun-2021]
Reply With Quote #340

The recently added forward "L4D_OnEnterGhostStatePre" can block this, but they'll remain in dead state for a while then I think the game auto spawns them or something. See the test plugin for example on usage + blocking. What you could do is then spawn them. Have a look at the natives: L4D_RespawnPlayer, L4D_State_Transition, L4D_MaterializeFromGhost, L4D_SetClass. Not sure which is best to use, play around with it.
__________________
Silvers is offline