csgo-retakes icon indicating copy to clipboard operation
csgo-retakes copied to clipboard

Force plant the bomb

Open splewis opened this issue 10 years ago • 10 comments

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 avatar Nov 25 '14 21:11 splewis

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.

splewis avatar Nov 26 '14 07:11 splewis

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

BrutalCSkakan avatar Feb 12 '15 21:02 BrutalCSkakan

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

L33TGaming avatar Feb 24 '15 09:02 L33TGaming

~~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.

BatStak avatar Feb 24 '15 12:02 BatStak

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?

BrutalCSkakan avatar Feb 24 '15 16:02 BrutalCSkakan

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

bojank avatar Feb 24 '15 17:02 bojank

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

BrutalCSkakan avatar Feb 24 '15 19:02 BrutalCSkakan

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.

dechristopher avatar Aug 12 '16 22:08 dechristopher

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

RavageCS avatar Aug 12 '16 23:08 RavageCS

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

sneak-it avatar Mar 07 '19 19:03 sneak-it