thecannons / Insurgency-dy-sourcemod

Updated folder structure
30 stars 21 forks source link

Despawn IEDs when triggering RoundEnd protection #22

Open AGSPhoenix opened 7 years ago

AGSPhoenix commented 7 years ago

This code is completely untested. Do not merge it without testing. It looks right and it compiles, that's about all I can say.

I've got some more tweaks I'd like to make on this. Proper communication between the suicide bomber and round end protection scripts would be nice. This will enable despawning dropped IEDs. It should also use the respawn script's AddLifeForStaticKilling function to preserve the spawn ticket.

If I get those working, I'll add them as further commits to this PR.

AGSPhoenix commented 7 years ago

Okay, finally figured out how to search for entities. My thanks to #sourcemod on Gamesurge for not laughing too hard when I had to ask.

Same warnings apply for the second commit, I don't know if it works.