ep2 - make chopper take damage Created 2 months ago2019-02-08 01:30:31 UTC by CPripyatUit CPripyatUit

Created 2 months ago2019-02-08 01:30:31 UTC by CPripyatUit CPripyatUit

Posted 2 months ago2019-02-08 01:30:31 UTC Post #341987
hi folks,

made a test map using a func_tank for a flak and i want it to shoot down combine choppers. problem is, choppers and gunships usually only take damage from the player's rocket launcher - i tried setting the entity's damage filter to one that set to allow damage by entity name [name of my tank] but it didn't work.

advice, anyone? the only thing i can come up with anymore would be parenting a trigger or some invisible entity to the chopper that triggers its selfdestruction upon taking enough damage from the flak. the func_tank is set up using the heavy combine cannon values for ammo type and FX handling. using ep2 hammer & game.

peace,
amber
CPripyatUit CPripyatUitshe/her, they/them
Posted 2 months ago2019-02-08 10:46:35 UTC Post #341990
Hi!

I don't know much about Half-Life 2 and the Episodes, but it seems the requirement for the damage to be from rockets or airboats is hard-coded: https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/hl2/npc_attackchopper.cpp#L3473

I think you're right in your line of thinking, sounds like the only thing that could work other than custom code
potatis_invalid potatis_invalidh̲͚̤̿͑̔̒̃̉̓ȋ͂͋̉̿̎͋̈́͏͚͖͇̭̩͓͔͝
You must be logged in to post a response.