Quote:
Originally Posted by Shamoke
I changed the code but Human players can still spawn as ghosts. While ghost spawning, they'll eventually take over the AI special infected, but just not instantly. I think something like automatically spawning a special infected immediately after a player spawns as a ghost could work. Any idea on how to edit the code to do something like that?
|
In the PlayerSpawn event, create a timer pointing to the Spawn_InfectedBot function. You should check to see if its a bot, and check to see if it's versus or not. It will spawn an infected bot everytime a player spawns, which will take over said infected bot.
Quote:
Originally Posted by DiRgE
[SM] Native "GetEntData" reported: Entity 4 is invalid
[SM] Displaying call stack trace for plugin "l4dinfectedbots.smx":
[SM] [0] Line 2749, /home/groups/alliedmodders/forums/files/4/8/2/4/5/49824.attach::IsPlayerGhost()
[SM] [1] Line 1772, /home/groups/alliedmodders/forums/files/4/8/2/4/5/49824.attach::ModelChange()
[l4dinfectedbots.smx] [L4D] Infected Bots: CreateFakeClient returned 0 -- Infected bot was not spawned
[l4dinfectedbots.smx] Temperory Infected Bot was not spawned for the Versus Door Unlocker!
|
Was there only just you and no other players in the server when you got the Versus Door Unlocker error?