Post: Spawn Bots (Join Team + Pick Class Included) (SPRX)
03-24-2015, 09:13 AM #1
Shark
Retired.
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU... I've been working my ass off for a few days trying to get this piece of shit to work due to how fucking autistically SV_ExecuteClientCommand is on MW2, however I have succeeded in making it work....

although please note the function is extremely fucking buggy (blame the game), however it does work just as long as you don't spam it :p

anyway since it's too complicated to post a simple code you put into your source I am going to post my source hopefully it helps a few of you because it's not very simple :\

Includes
    
SV_ExecuteClientCommandHook (Used For Button Monitoring, You Will See In Source :p)
SV_ExecuteClientCommandCustom (Allows You To Call SV_ExecuteClientCommand on Any Client!)
A Bunch of other stuff that may be useful :p


How To Spawn Bots (Using The Source I Provided)
    
DPAD Down - Spawns The Bot (You Will See In Killfeed)
DPAD Up - Sets The Team of The Most Recent Spawned Bot
DPAD Right - Sets The Class of the Most Recent Spawned Bot
You could do this in a much better way but for experimenting this is how I did it (feel free to change idfc)


Download: You must login or register to view this content. - Ignore The Name, It's Just What I Named The Project.

Proof
You must login or register to view this content.
Last edited by Shark ; 08-29-2015 at 02:05 AM.

The following 21 users say thank you to Shark for this useful post:

/SneakerStreet/, 01cedricv2, AlexNGU, anxify, BaSs_HaXoR, Dog88Christian, FusionIsDaName, ItzMatriix, koekiemonstarr2, makeabce, mrdarkblue, mrtn, -Numb, oStankyModz, Kronos, Swaqq, Synergy, TheGreenPlanet, tunde1992, Laser
02-28-2016, 01:24 AM #20
Originally posted by Shark View Post
Hey NGU... I've been working my ass off for a few days trying to get this piece of shit to work due to how fucking autistically SV_ExecuteClientCommand is on MW2, however I have succeeded in making it work....

although please note the function is extremely fucking buggy (blame the game), however it does work just as long as you don't spam it :p

anyway since it's too complicated to post a simple code you put into your source I am going to post my source hopefully it helps a few of you because it's not very simple :\

Includes
    
SV_ExecuteClientCommandHook (Used For Button Monitoring, You Will See In Source :p)
SV_ExecuteClientCommandCustom (Allows You To Call SV_ExecuteClientCommand on Any Client!)
A Bunch of other stuff that may be useful :p


How To Spawn Bots (Using The Source I Provided)
    
DPAD Down - Spawns The Bot (You Will See In Killfeed)
DPAD Up - Sets The Team of The Most Recent Spawned Bot
DPAD Right - Sets The Class of the Most Recent Spawned Bot
You could do this in a much better way but for experimenting this is how I did it (feel free to change idfc)


Download: You must login or register to view this content. - Ignore The Name, It's Just What I Named The Project.

Proof
You must login or register to view this content.


can u fix the link please mate Smile
03-27-2016, 12:00 AM #21
TheGreenPlanet
Do a barrel roll!
404 m8 plz fix Smile
04-12-2016, 07:12 AM #22
Shark
Retired.
Link Fixed.
04-12-2016, 08:43 PM #23
Can u add teleport bot to position and freeze? If so this would be sick af even better dude <3

The following user thanked ImExploiting for this useful post:

JORD-PL
04-12-2016, 10:23 PM #24
Originally posted by ImExploiting View Post
Can u add teleport bot to position and freeze? If so this would be sick af even better dude <3


Superman v3 by slowmodz has this
04-15-2016, 07:26 PM #25
I have used this in my own sprx and for some reason the bots are added and auto assign to a team but do not actually pick a class and spawn in... Anyone know why?
04-17-2016, 07:43 PM #26
TheGreenPlanet
Do a barrel roll!
there should be a func that auto sign in the bot, and also choose the desired class of it. Btw the file Shark "updated" isnt the one that this post is about, ask someone that has the first/real project he uploaded.
02-23-2019, 08:43 PM #27
QuantumDev
Can’t trickshot me!
Is there a C# version of this? I tried the following and it freezes my PS3:
    
public void SpawnBot()
{
Int32 clientTemp = PS3.Extension.ReadInt32((UInt32)RPC.Call(0x002189DCool Man (aka Tustin));
RPC.Call(0x00215310, client_s(clientTemp), "mr " + PS3.Extension.ReadInt32(0x1BE5BECCool Man (aka Tustin) + " 3 autoassign", 1, 0);
RPC.Call(0x00215310, client_s(clientTemp), "mr " + PS3.Extension.ReadInt32(0x1BE5BECCool Man (aka Tustin) + " 10 class1", 1, 0);
}
public static UInt32 client_s(Int32 clientIndex)
{
return 0x34740000 + (0x97F80 * (UInt32)clientIndex);
}

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo