Half-Life и Adrenaline Gamer форум
http://aghl.ru/forum/

Detect when monster_satchel explode
http://aghl.ru/forum/viewtopic.php?f=20&t=1375
Страница 1 из 1

Автор:  Rango [ 30 июл 2013, 00:51 ]
Заголовок сообщения:  Detect when monster_satchel explode

How do I detect when it explodes? I found this thread: http://forums.alliedmods.net/showthread.php?p=1698797 but it uses orpheu. Is there a way without using orpheu?

This is irrelevant but sometimes I noticed some weapon_* entities missing from the maps. Have anyone else here experienced this before?

Автор:  unnamed [ 30 июл 2013, 01:56 ]
Заголовок сообщения:  Re: Detect when monster_satchel explode

I think you can't hook the explosion directly without orpheu. But you can try to detect when player activate detonator and get all of his satchels

Автор:  Lev [ 30 июл 2013, 02:26 ]
Заголовок сообщения:  Re: Detect when monster_satchel explode

Rango
As in the mentioned topic, what is your real goal with this? Describe fully please.
Never seen weapon missing from a map.

Автор:  Rango [ 28 авг 2013, 08:00 ]
Заголовок сообщения:  Re: Detect when monster_satchel explode

unnamed писал(а):
I think you can't hook the explosion directly without orpheu. But you can try to detect when player activate detonator and get all of his satchels

Is there a way of achieving this without orpheu?

Lev писал(а):
Rango
As in the mentioned topic, what is your real goal with this? Describe fully please.
Never seen weapon missing from a map.

I'd like to reset the satchel count of a player to 5 when he detonates any of his satchels

I'm using this piece of code to reset the satch count but the debug print shows that id is everyone
Код:
...
register_message(SVC_TEMPENTITY, "fw_SatchelExplode")
...

public fw_SatchelExplode(ent)
{
   while((ent = find_ent_by_class(ent, "monster_satchel")))
   {
      if(get_msg_arg_int(1) == TE_EXPLOSION && pev_valid(ent))
      {
         new id = pev(ent, pev_owner)
         set_pdata_int(id, m_rgAmmo[9], 5, XO_PLAYER)
         client_print(0, print_chat, "DEBUG: id is %d", id)
      }
   }
}

Автор:  Rango [ 12 сен 2013, 03:59 ]
Заголовок сообщения:  Re: Detect when monster_satchel explode

Anyone?

Автор:  KORD_12.7 [ 12 сен 2013, 08:15 ]
Заголовок сообщения:  Re: Detect when monster_satchel explode

Rango
Try Ham_Use on monster_satchel.

Страница 1 из 1 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/