Raised This Month: $159 Target: $400
 39% 

[CS:S] C4 Autoplanter


Post New Thread Reply   
 
Thread Tools Display Modes
r3v
Senior Member
Join Date: Feb 2016
Location: Lithuania, Vilnius
Old 02-16-2022 , 05:21   Re: [CS:S] C4 Autoplanter
Reply With Quote #11

Quote:
Originally Posted by Bacardi View Post
Hehehe, nice. Good to hear.
Aghhh, found a bug. I notice, at round start, C4 is planted in Bombsite "Center" always. I have other maps like de_inferno, de_train and others, so the bug is, on other maps, c4 is planted inside a box or other where to hard find it...
r3v is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-16-2022 , 05:27   Re: [CS:S] C4 Autoplanter
Reply With Quote #12

Yes, it does plant center of bombsite "box", code is simple... need ad tracehull check. If I have time, I try look it.

*edit
In this example, it have simple TraceHull check.

It check 5 different position if it hit something, 80 unit distance from center.
If it hit on last check, it will not spawn c4.
Attached Files
File Type: sp Get Plugin or Get Source (test.sp - 98 views - 7.6 KB)
__________________
Do not Private Message @me

Last edited by Bacardi; 02-16-2022 at 09:30.
Bacardi is offline
r3v
Senior Member
Join Date: Feb 2016
Location: Lithuania, Vilnius
Old 02-16-2022 , 12:26   Re: [CS:S] C4 Autoplanter
Reply With Quote #13

Okey, tested plugin on other maps, working great now! Thank you again!
r3v is offline
test123lol123
New Member
Join Date: Aug 2022
Old 02-12-2025 , 18:28   Re: [CS:S] C4 Autoplanter
Reply With Quote #14

the bomb randomly goes to the next site, for example its planted on A and then switches to B after a few secs for some reason... happens like every 3-4 rounds

EDIT: nevermind it was my own issue with how I handled team shuffling

Last edited by test123lol123; 02-12-2025 at 19:42.
test123lol123 is offline
test123lol123
New Member
Join Date: Aug 2022
Old 02-22-2025 , 10:16   Re: [CS:S] C4 Autoplanter
Reply With Quote #15

after the recent 64 bit update to source games, this plugin no longer works, crashes on signature check, could you update this plugin to work with the latest CS:S update?
test123lol123 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-22-2025 , 17:32   Re: [CS:S] C4 Autoplanter
Reply With Quote #16

*edit
I'm still confused about 32bit and 64bit srcds...

If I have understood right, CS:S-game have turned to 64bit.
SRCDS.exe is still 32bit.

I found these, and it will crash server also. (OS Windows)
I have not yet tested on Linux.

I can not figure out, why crash happens? And it happens on SDKCall() part.

PHP Code:



/*
    static CPlantedC4* ShootSatchelCharge( CCSPlayer *pevOwner, Vector vecStart, QAngle vecAngles );
*/



"Games"
{
    
"cstrike"
    
{
        
"Signatures"
        
{
            
"ShootSatchelCharge"
            
{
                
"library" "server"
                "windows" "\x55\x8B\xEC\x81\xEC\xAC\x00\x00\x00\x53\x56\x57\x8B\xF9\xE8\xFD\x1D\x00\x00\x8B\xD8\x89\x5D\xF4\x85\xDB\x0F\x84\xE1\x09\x00\x00\x8B\x83\x30\x01\x00\x00"
                "linux"   "@_ZN10CPlantedC418ShootSatchelChargeEP9CCSPlayer6Vector6QAngle"
            
}
        }
    }


Seems cs:s update have merged "ShootSatchel" function into bigger function (What I get from IDA), need look another way to make this.
__________________
Do not Private Message @me

Last edited by Bacardi; 02-23-2025 at 09:31.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-27-2025 , 06:47   Re: [CS:S] C4 Autoplanter
Reply With Quote #17

27.02.2025

Here updated plugin.
- On windows, "ShootSatchelCharge" function is merged into weapon C4 PrimaryAttack.
So, I change that plugin create that planted_c4 entity and then I call on that entity -> "CPlantedC4::Init"


Tested on windows srcds.exe, srcds_win64.exe and linux srcds_linux
Attached Files
File Type: zip c4_planted_test_27022025.zip (11.2 KB, 6 views)
__________________
Do not Private Message @me
Bacardi is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:45.


Powered by vBulletin®
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Theme made by Freecode