How to make hostile barney? Created 1 week ago2024-11-30 02:55:49 UTC by TheHalfLifeAndDreamcastFan TheHalfLifeAndDreamcastFan

Created 1 week ago2024-11-30 02:55:49 UTC by TheHalfLifeAndDreamcastFan TheHalfLifeAndDreamcastFan

Posted 1 week ago2024-11-30 02:55:49 UTC Post #349370
I am making a half life 1 mod but i want the security guard to shoot at the player automatically. Can someone tell me how to do this?
Posted 1 week ago2024-11-30 10:55:31 UTC Post #349371
Without code changes, the only thing I can think of is to 1) hurt Barney with something activated by the player, like a trigger_hurt, so he retaliates, or 2) kill a scientist (with the "gag" flag on so he doesn't scream) with the same method and let Barney witness it, so he considers Gordon hostile.

Not sure if triggers will propagate the inflictor info correctly though.

If you don't mind changing the code, then it's a lot easier, either make a custom trigger to provoke a named Barney entity, or just change the relationship with the player to be hostile (https://twhl.info/wiki/page/Monsters_Programming_-_Classifications_and_Relationships).
Posted 1 week ago2024-11-30 21:44:18 UTC Post #349372
Featureful SDK allows you to change any monster's relationship with the player https://github.com/FreeSlave/halflife-featureful I'd recommend using this SDK as it allows mappers way more variety and customizations in your maps
You must be logged in to post a response.