Half-Life и Adrenaline Gamer форум http://aghl.ru/forum/ |
|
removal of the entity client_disconnect http://aghl.ru/forum/viewtopic.php?f=12&t=2238 |
Страница 1 из 1 |
Автор: | abdobiskra [ 24 июл 2015, 16:11 ] |
Заголовок сообщения: | removal of the entity client_disconnect |
hi i want the function to clear the ent (ex: tripmine) when owner disconnect ! Код: public client_disconnect(id) |
Автор: | Lev [ 24 июл 2015, 20:23 ] |
Заголовок сообщения: | Re: removal of the entity client_disconnect |
pev_owner on the tripmine entity is not set, use this info to get owner: http://aghl.ru/forum/viewtopic.php?f=39&t=30 Код: // CTripmineGrenade (monster_tripmine) - linux dif 4 |
Автор: | abdobiskra [ 25 июл 2015, 10:14 ] |
Заголовок сообщения: | Re: removal of the entity client_disconnect |
Lev How can I determine accurately origin here in this line Код: while((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "monster_tripmine"))) I, for example, used this but to no avail, sure it will not work !! only developed by in order to understand what I mean Код: while((ent = engfunc(EngFunc_FindEntityByString, ent, "origin", "-837 1256 -1659"))) |
Автор: | Lev [ 25 июл 2015, 14:56 ] |
Заголовок сообщения: | Re: removal of the entity client_disconnect |
You should use Код: pev(ent, pev_origin, origin)after you got ent. You can't filter by origin in EngFunc_FindEntityByString. |
Автор: | abdobiskra [ 25 июл 2015, 15:13 ] |
Заголовок сообщения: | Re: removal of the entity client_disconnect |
Well I understood it ![]() One last question ! What is the name of this orgin off the map !! i tryed ("classname" "func_door") but not work ! when i used no_spawner_mine ? There are those who uses lasermine here and become hidden and difficult to remove it Вложение:
|
Автор: | Lev [ 25 июл 2015, 16:46 ] |
Заголовок сообщения: | Re: removal of the entity client_disconnect |
Honestly, I don't understand the question. If you want to get exact coordinates of this place, you can place one mine there on test server and output origin of that mine into console with a plugin. |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |