Fortress Forever

Fortress Forever (https://forums.fortress-forever.com/index.php)
-   Mapping (https://forums.fortress-forever.com/forumdisplay.php?f=13)
-   -   noannoyances doesn't include detpacks and pipes? (https://forums.fortress-forever.com/showthread.php?t=24448)

KubeDawg 07-11-2014 09:35 PM

noannoyances doesn't include detpacks and pipes?
 
Just wondering why detpacks and pipes can still go off when grenades and other things do not when I have a trigger set with the name noannoyances. Is there a way around this?

ddm999 07-14-2014 01:11 PM

Code:

function noannoyances:onexplode( explode_entity ) return EVENT_DISALLOWED end
Put this at the top of your lua script.

By default, it's set to check whether it's a grenade exploding, disallow if it is, but allow if it isn't.

This will make any noannoyances in your map remove all explosions (detpacks, pipes - maybe RPG rockets as well, however).

KubeDawg 07-14-2014 03:44 PM

This didn't work. I replaced the original noannoyances grenade code from the base teamplay lua file with your function and it still prevents grenades from exploding, but detpacks and pipes still explode when they go off in game.

caesium 07-15-2014 09:24 AM

That's annoying.

ddm999 07-17-2014 03:55 PM

Very strange.

I guess Lua simply doesn't recognise detpacks and pipes as exploding entities.

Nothing you can really do in that case.


All times are GMT. The time now is 05:07 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.