Notes |
|
(0018007)
|
Dusk
|
2017-07-12 08:09
(edited on: 2017-07-12 08:10) |
|
Your code is just plain wrong. Use something like this instead:
script "Hem_RemoveThingImmediatelly" (void)
{
if (PlayerNumber() == -1)
Thing_Remove(0);
}
|
|
|
(0018008)
|
eagle
|
2017-07-12 08:29
|
|
Alas, your code will also delete everything, including the player's actor. |
|
|
(0018009)
|
eagle
|
2017-07-12 09:06
|
|
and with it how to be? Nevertheless ClassifyActor(0) works not correctly in online.
script "Hem_RemoveItemDelayed" (void)
{
if((ClassifyActor(0) & ACTOR_PLAYER) || (ClassifyActor(0) & ACTOR_MONSTER))
{
delay(1);
terminate;
}
int target = ActivatorTID();
if ((target == 0) && (!(ClassifyActor(target) & ACTOR_PLAYER)))
{
target = UniqueTID();
Thing_ChangeTID(0,target);
}
int counter = 0;
while ((counter < 3150) && (ClassifyActor(target) != ACTOR_NONE) && (!(ClassifyActor(target) & ACTOR_MONSTER)))//delay 15 min
{
delay(10);
counter++;
}
if ((!(ClassifyActor(target) & ACTOR_PLAYER)) && (ClassifyActor(target) != ACTOR_NONE) && (!(ClassifyActor(target) & ACTOR_MONSTER)))
{
StopSound(target,CHAN_WEAPON);
StopSound(target,CHAN_VOICE);
StopSound(target,CHAN_ITEM);
StopSound(target,CHAN_BODY);
StopSound(target,5);
StopSound(target,6);
StopSound(target,7);
Thing_Remove(target);
terminate;
}
terminate;
} |
|
|
|
|
|
(0018011)
|
Dusk
|
2017-07-12 09:43
|
|
And my script won't delete the player because PlayerNumber() returns -1 if it's not a player. |
|
|
(0018012)
|
eagle
|
2017-07-12 09:47
|
|
What isn't correct? Everything is made according to descriptions from zdoom.org
Despite all checks the script begins to carry out removal of the actor with TID of the actor of the player.
It is tested within many hours of a game in online. |
|
|
(0018013)
|
Konda
|
2017-07-12 09:50
|
|
eagle, please try Dusk's version of the script. If it still doesn't work (after you've actually tried to run the mod with Dusk's script), explain from where, when, and how you are calling this script. |
|
|
|
Do NOT reopen this report. The problem is NOT classifyactor, it works as intended. |
|
|
(0018015)
|
eagle
|
2017-07-12 10:04
(edited on: 2017-07-12 10:05) |
|
Inscribed the offered Dusk in scripts, but it isn't enough as it seems to me as loss by the player of a body and other unclear actuatings sometimes nevertheless happen. In several hours I will be able to check it in online on the real server.
|
|
|
|
|
|
(0018017)
|
eagle
|
2017-07-12 17:23
|
|
Я проверил предложенное Dusk на сервере в реаьной игре, не работает это, не определяет игрока.
I checked the offered Dusk on the server in a reany game, it does not work, does not define the player. |
|
|
|
Not sure why this was reopened, ClassifyActor does what it's intended to do. The issue here is what he's trying to do with it that isn't working, which like Rust said, belongs on the forums -- not here. |
|
|
|
>Я проверил предложенное Dusk на сервере в реаьной игре, не работает это, не определяет игрока.
Translation: I tested the solution that Dusk suggested on a server in a real game, it doesn't work, doesn't determine the player. |
|
|
(0018020)
|
Korshun
|
2017-07-13 14:17
(edited on: 2017-07-13 14:19) |
|
Автор, иди спроси на форуме или у друзей, как написать нормальный работающий скрипт. Я тестил ClassifyActor в мультиплеере и он нормально работает. Твои скрипты переусложнены и местами бред.
Translation:
Author, go ask your friends or on the forums how to make a working script. I tested ClassifyActor in multiplayer and it works fine. Your scripts are overcomplicated and sometimes nonsense.
|
|
|
(0018021)
|
Dusk
|
2017-07-13 14:47
(edited on: 2017-07-13 18:57) |
|
Okay this has gone on for long enough. There is clearly no bug here but the provided script is just broken.
As has been said before already, please use the forums for editing issues. This is not a bug and therefore does not belong to the tracker.
Do NOT open this ticket again or I will consider deleting it. If you find an actual bug with ClassifyActor (as unlikely as that is), please post a new ticket.
|
|