splewis / csgo-retakes

CS:GO Sourcemod plugin for a site-retake gamemode
GNU General Public License v3.0
328 stars 115 forks source link

Force plant the bomb #2

Open splewis opened 9 years ago

splewis commented 9 years ago

Have the player that spawns with the bomb carrier automatically planting, or something similar.

There's some commented-out code attempting this:

https://github.com/splewis/csgo-retakes/blob/master/scripting/retakes/spawns.sp#L217

The idea is to force the bomb holder to be doing "+use" until the bomb is planted. There's some odd glitches with it, though.

splewis commented 9 years ago

Well, what it has now will force the player to get the bomb out at least.

Forcing IN_USE for 1 frame causing the plant to stop, and keeping it until the bomb is planted looks very glitchy in the player UI.

BrutalCSkakan commented 9 years ago

What about planting the bomb automaticly without having a player planting it? Or would this cause problems with plants under boxes etc?

L33TGaming commented 9 years ago

Is there anyway to freeze the player or force the player to plant?

BatStak commented 9 years ago

Slap him to death if he does not plant the bomb and burn him for the 10 next rounds !

I think this is pretty hard to force player's actions. Plant the bomb automatically may be simpler.

BrutalCSkakan commented 9 years ago

The bomb is an entity right? Shouldn't it be fairly easy to just put the bomb on the ground with some type of "isPlanted(true)" at the closest bombcarrier?

bojank commented 9 years ago

I like having the player not planting. This way the player can chose the spot he wants to plant as oppose to some default plant spot. This will add more to teams practicing certain plants they might want to train. Leave it as is

BrutalCSkakan commented 9 years ago

Well, a CVAR for the option would be good for both of us.

dechristopher commented 8 years ago

I'd love to see an implementation of this by someone. I've been heavily modifying the retakes plugin and this is one of the last features I need.

RavageCS commented 8 years ago

I'd love to see an implementation of this by someone. I've been heavily modifying the retakes plugin and this is one of the last features I need.

The problem is that if you try: ClientCommand(client, +use) to plant the bomb, you get FCVAR_SERVER_CAN_EXECUTE error in console. So you cant do +use or +attack.

If you comment or delete line 228 /scripting/retakes/spawns.sp it will plant the bomb, but

There's some odd glitches with it, though.

Basically the screen shakes like it's getting stuck in the plant animation

sneak-it commented 5 years ago

Just noticed that this issue existed, there have been a few third-party plugins out that address this issue, for example: https://github.com/b3none/retakes-instadefuse