Spawn a player during respawn timer (DOD)
Hello, I've recently been trying to create a zombie plague style plugin for Day of Defeat.
I'm trying to make it so when an Allied player dies he will instantly be switched to Axis and respawn and moved to his last position. But for some reason when I try to respawn the player after death it is unable to do it. Even after creating a task with 'set_task' to try and respawn the player after the death animation it just won't work. Is there a potential fix for this? Or would I have to settle for a timed respawn Code:
public plugin_init() |
Re: Spawn a player during respawn timer (DOD)
Code:
public Ham_OnKilled_Post(id, killer) |
Re: Spawn a player during respawn timer (DOD)
Your forward is not in "post". RegisterHam's "post" argument defaults to 0 which means you're in "pre" because you did not specify the argument.
=> Code:
|
Re: Spawn a player during respawn timer (DOD)
Quote:
Is there a flag a different flag that is blocking the spawn? because i haven't found anything related to this problem in Day of Defeat so i am stuck by not knowing why is the respawn restricted |
Re: Spawn a player during respawn timer (DOD)
Quote:
I tried with set_task but still it wont respawn the player... Code:
public Ham_OnKilled_Post(id, killer) |
Re: Spawn a player during respawn timer (DOD)
Try Ham_Spawn and remove the task.
|
Re: Spawn a player during respawn timer (DOD)
Quote:
@cmndrfello, there is a plugin by dodsynthetic that implements and instant spawn using Fakemeta on dodplugins.net. I'm not sure if it works anymore though since I've never used it. |
Re: Spawn a player during respawn timer (DOD)
Quote:
|
Re: Spawn a player during respawn timer (DOD)
1 Attachment(s)
Here ya go
|
Re: Spawn a player during respawn timer (DOD)
Quote:
|
| All times are GMT -4. The time now is 11:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.