Page 1 of 1

BombSecurity v1.2.1

Posted: Tue Mar 01, 2016 4:39 am
by satoon101
BombSecurity allows Counter-Terrorists to pick up the bomb when a Terrorist drops it. The CT can then run away and hide with it, playing a bit of keep-away from the remaining Terrorists.

There is no configuration, currently. If you have suggestions for the plugin, please feel free to post them here or on the plugin's GitHub issues list:
https://github.com/satoon101/BombSecurity/issues

This plugin has been fully tested on CS:S, but should also work on CS:GO. Let me know if that isn't the case.

Thanks, and enjoy :)

Current version download
bomb_security - v1.2.1.zip
(2.1 KiB) Downloaded 418 times



Older versions
bomb_security - v1.2.zip
(2.1 KiB) Downloaded 423 times

bomb_security - v1.1.zip
(2.21 KiB) Downloaded 395 times

bomb_security - v1.0.zip
(2.28 KiB) Downloaded 398 times

Posted: Tue Mar 01, 2016 10:25 am
by Ayuto
Nice! I guess it would also work if you set m_iTeam or m_iTeamNum (can't remember the name) to the T team. Then you don't need to hook player_team anymore, because that doesn't cause a message to be sent.

Next step would be giving the Ts the ability to pickup a planted bomb and run away. :D

Posted: Tue Mar 01, 2016 12:10 pm
by BackRaw
Great work, I like the simplicity :D

Posted: Tue Mar 01, 2016 2:16 pm
by satoon101
Ayuto wrote:Nice! I guess it would also work if you set m_iTeam or m_iTeamNum (can't remember the name) to the T team. Then you don't need to hook player_team anymore, because that doesn't cause a message to be sent.

I did originally try that. I was crashing, however, and changed it to the current method during my tests to fix the crashing. I don't believe that was the cause of the crashing, though, so I should definitely change it back.

*Edit: changed, tested, and updated. Version 1.1 now available.

Re: BombSecurity v1.0

Posted: Thu Aug 04, 2016 10:30 am
by kalle
Hey satoon101,

thanks for the nice script. Got a problem if I want to give CT that bomb at spawn. He drops the bomb immediately. Because I remove the bomb entity after dropping and creating another entity is it possible that the bomb sticks to the player even on spawn? Or should I just add an delay. Because if I just delay that thing the CT can hold the bomb without problems.

Thanks for your help :)

Re: BombSecurity v1.0

Posted: Thu Aug 04, 2016 11:36 am
by satoon101
There's nothing in the plugin itself that would cause that. That is likely due to how the game gives weapons on spawn. Try adding a delay of 0 (which will delay 1 tick) and see if that works.

Re: BombSecurity v1.0

Posted: Thu Aug 04, 2016 11:32 pm
by kalle
Thanks for that, works good now. I know it's a little bit of topic but a little problem remains: if I add the bomb with

Syntax: Select all

Delay(0, player.give_named_item, 'weapon_c4', 0, None, True)

it still drops the first time after giving the bomb to an CT or T. Maybe there is an hook for that, too? I currently have problem if a player does not directly move after spawn (which can happen of course) so he wont "run" over the bomb and it sticks on the ground. If I just walk a little bit in any direction I will pick it up. Of course another player could come and pick it up, too. Only first spawn after server join (or round start) does work without problems. But I think that's related to CS:GO.

Re: BombSecurity v1.2

Posted: Sat Apr 08, 2017 7:18 pm
by satoon101
Updated plugin for newest SP changes.

Re: BombSecurity v1.2.1

Posted: Sun Oct 29, 2017 10:28 pm
by satoon101
BombSecurity Update!
Version: 1.2.1
Version Notes:
  • Fixed attribute for newest SP changes (Entity.team -> Entity.team_index).