HLFX.Ru Forum
Показать все 3 сообщений этой темы на одной странице

HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- Is it possible to get kills using func_tank? (https://hlfx.ru/forum/showthread.php?threadid=5758)


Отправлено Napoleon321 16-11-2021 в 18:29:

Question Is it possible to get kills using func_tank?

Hello Team,

I hope you are good those days.

I have a quick question regarding coding for Half-Life 1, I'm trying to implement functionality with func_tank to get kill points for those you kill using it.

For example to be able to get kills using the cannon on crossfire or using the turrets on stalkyard. The idea is basically to get 1 point for killing a player using the func_tank entity.

Does anyone have an idea on how to do that? Any help would be greatly appreciated.

__________________
FlatLine Arena | Tutorials

If you don't like something, MOD it!


Отправлено FreeSlave 16-11-2021 в 18:51:

Machine guns (like ones on stalkyard) already do what you want. The frag point will go to the player who killed another player using the machine gun.
As for mortar, rocket and laser tanks, you'll need to change few things in the game code to forward the right attacker entity.

__________________
I'm on github
I'm on opendesktop.org


Отправлено Napoleon321 16-11-2021 в 23:20:

Interesting, didn't knew that the stalkyard turret already gives the kills... Still looking at the code for it I don't see any routines for giving the points...

__________________
FlatLine Arena | Tutorials

If you don't like something, MOD it!


Временная зона GMT. Текущее время 12:42.
Показать все 3 сообщений этой темы на одной странице

На основе vBulletin версии 2.3.0
Авторское право © Jelsoft Enterprises Limited 2000 - 2002.
Дизайн и программирование: Crystice Softworks © 2005 - 2024