BombSecurity v1.0

Release your plugins here!
User avatar
satoon101
Project Leader
Posts: 2286
Joined: Sat Jul 07, 2012 1:59 am

BombSecurity v1.0

Postby satoon101 » Tue Mar 01, 2016 4:39 am

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 :)
Attachments
bomb_security - v1.1.zip
(1.97 KiB) Downloaded 55 times
Image
User avatar
Ayuto
Project Leader
Posts: 1541
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Postby Ayuto » Tue Mar 01, 2016 10:25 am

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
User avatar
BackRaw
Senior Member
Posts: 413
Joined: Sun Jul 15, 2012 1:46 am
Location: Germany

Postby BackRaw » Tue Mar 01, 2016 12:10 pm

Great work, I like the simplicity :D
My Github repositories:

Source.Python: https://github.com/backraw/backraw.sp
User avatar
satoon101
Project Leader
Posts: 2286
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Tue Mar 01, 2016 2:16 pm

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.
Image
kalle
Junior Member
Posts: 26
Joined: Sun Jun 26, 2016 9:48 am
Contact:

Re: BombSecurity v1.0

Postby kalle » Thu Aug 04, 2016 10:30 am

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 :)
User avatar
satoon101
Project Leader
Posts: 2286
Joined: Sat Jul 07, 2012 1:59 am

Re: BombSecurity v1.0

Postby satoon101 » Thu Aug 04, 2016 11:36 am

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.
Image
kalle
Junior Member
Posts: 26
Joined: Sun Jun 26, 2016 9:48 am
Contact:

Re: BombSecurity v1.0

Postby kalle » Thu Aug 04, 2016 11:32 pm

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.

Return to “Plugin Releases”

Who is online

Users browsing this forum: No registered users and 1 guest