Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Battlefield 2 hacks cheats tutorials source code
You are Unregistered, please register to gain Full access.
For this mod will (only) the RCON access from the BF2 server is required. Since there are some commands that need to be Submitted, I have used here the sake of simplicity, the internal client BF2 RCON console together with a AutoHotkey script.
Origin for this mod approach is a "ranked servers" have been where the admins, the Times had the "control points" greatly reduced. They took a vehicle and positioned it as the only vehicle in the CP-radius and the "player" when leaving the vehicle is not in CP-radius. Two players player_team 1 "and" player_team 2 ", alternately rising and thus take over control of the Flagenpunktes only with the help of the vehicle.
The server needs to type the commands to be run and have fully galad the core values. For the full application of the revised values, the map would have to type the commands to be restarted should the card be reloaded, all values back in original condition.
AutoHotkey-Example AutoHotkey.ini
Code:
; AutoHotkey: Version: 1.x
; Language: English
; Platform: WinVista x64
;
;
; Only run this script when bf2.exe is running in the foreground
;
#SingleInstance force
#InstallKeybdHook
;rcon password, here "Myp7n5yP"
rconpw = Myp7n5yP
SetTimer, KeepRunning
return
KeepRunning:
; Get the process name of the active window (i.e. Notepad.exe)
WinGet, szProcessName, ProcessName, A
if szProcessName = bf2.exe
{
Suspend, off
}
else
{
Suspend, on
}
return
;
; Disable the Window's keys so they don't switch to desktop while in-game
;
$LWin:: ; Left Windows Button
$RWin:: ; Right Windows Button
; Do nothing
return
$^CapsLock::
ExitApp
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Pressing Ctrl+V while BF2 is active
;
;Ctrl+V
$^v::
SetKeyDelay, 30,30
Send, %clipboard%
SetKeyDelay, 0
return
;Ctrl+NumPAD 0
$^Numpad0::
SetKeyDelay, 20,20
Send, rcon exec %clipboard%
SetKeyDelay, 0
return
;Ctrl+NumPAD 1, Demolition with "XButton2"
^$Numpad1::
SetKeyDelay, 15,15
Send, {Enter}
Send, rcon login %rconpw%{ENTER}
SetKeyDelay, 0
FileRead,list,O:\001_FTP\Spielen\Battlefield\Battlefield 2\Server\00_cheats\CP_MOD_SK_64.txt
StringSplit,liste,list,`n,`r
Loop %liste0%
{
SetKeyDelay, 15,15
CPMOD:=liste%A_INDEX%
Send, rcon exec %CPMOD%{ENTER}
SetKeyDelay, 0
GetKeyState, state, XButton2, P
if state = D
break
}
Return
;Ctrl+NumPAD 2, Demolition with "XButton2"
^$Numpad2::
SetKeyDelay, 30,30
Send, {Enter}
Send, rcon login %rconpw%{ENTER}
SetKeyDelay, 0
FileRead,list,O:\001_FTP\Spielen\Battlefield\Battlefield 2\Server\00_cheats\OS_MOD_SK_64.txt
StringSplit,liste,list,`n,`r
Loop %liste0%
{
SetKeyDelay, 30,30
OSMOD:=liste%A_INDEX%
Send, rcon exec %OSMOD%{ENTER}
SetKeyDelay, 0
GetKeyState, state, XButton2, P
if state = D
break
}
Return
;Ctrl+NumPAD 2, Demolition with "XButton2"
^$Numpad9::
FileRead,list,O:\001_FTP\Spielen\Battlefield\Battlefield 2\Server\00_cheats\password.txt
StringSplit,liste,list,`n,`r
Loop %liste0%
{
SetKeyDelay, 20,20
pword:=liste%A_INDEX%
Send, {Enter}
Send, rcon login %pword%{ENTER}
Sleep 500
SetKeyDelay, 0
GetKeyState, state, XButton2, P
if state = D
break
}
Return
The command line needs to be specified here "rcon exec <command>" be placed in front because the internal client BF2 RCON console with "Unauthorized Method" would reply.
A "control point" is created on the BF2 engine via the following commands: Sample: map_name -> Strike_at_Karkand, game_mode -> gpm_cq, map_size -> 64, cp -> gasstation (??Tankstelle??) Excerpt from: "BF2_Server directory"\mods\bf2\Levels\Strike_at_Karkand\server.zip ->\gamemodes\gpm_cq\64\GamePlayObjects.con
Code:
rem ********** Control Points **********
rem [ControlPointTemplate: CPNAME_SK_64_gasstation]
ObjectTemplate.create ControlPoint CPNAME_SK_64_gasstation
ObjectTemplate.activeSafe ControlPoint CPNAME_SK_64_gasstation
ObjectTemplate.modifiedByUser dgo
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName CPNAME_SK_64_gasstation
ObjectTemplate.radius 10
ObjectTemplate.team 2
ObjectTemplate.controlPointId 13
ObjectTemplate.timeToGetControl 0
ObjectTemplate.timeToLoseControl 0
ObjectTemplate.unableToChangeTeam 1
...
if v_arg1 == host
rem [ControlPoint: CPNAME_SK_64_gasstation]
Object.create CPNAME_SK_64_gasstation
Object.absolutePosition -161.030/161.287/-262.828
Object.layer 3
...
endIf
Change the value of the BF2 server client internal RCON-Console Sample: map_name -> Strike_at_Karkand, game_mode -> gpm_cq, map_size -> 64, cp -> gasstation (??Tankstelle??)
Code:
ObjectTemplate.active ControlPoint CPNAME_SK_64_gasstation ; aktiviert die zu bearbeitene Objektvorlage
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.radius 10 ; Ationsradius des CP, ACHTUNG der BF2 client_hud nimmt dennoch den Originalwert
ObjectTemplate.team 2 ; Team-Zuweisung (0=Neutral, 1=China/MEC, 2=USMC)
ObjectTemplate.areaValueTeam1 13
ObjectTemplate.areaValueTeam2 13
ObjectTemplate.timeToGetControl 0 ; Übernahme der Kontrolle in "ms"
ObjectTemplate.timeToLoseControl 0 ; Verlusst der Kontrolle in "ms"
ObjectTemplate.unableToChangeTeam 1 ; nicht Kontrollierbar durch Team "x" (1=China/MEC, 2=USMC)
Object Spawner
An "object spawner" is created on the BF2 engine via the following commands:
Change the value of the BF2 server client internal RCON-Console Sample: map_name -> Strike_at_Karkand, game_mode -> gpm_cq, map_size -> 64, os -> CPNAME_SK_64_gasstation_HeavyJeep_0
Code:
ObjectTemplate.active ObjectSpawner CPNAME_SK_64_gasstation_HeavyJeep_0 ; activates the object to edit template
ObjectTemplate.setObjectTemplate 1 JEP_VODNIK ; Vehicle Allocation for Team 1, ATTENTION "server crash" in non Regitrierten vehicle for the map
ObjectTemplate.setObjectTemplate 2 USJEP_HMMWV ; Vehicle Allocation for Team 2, ATTENTION "server crash" in non Regitrierten vehicle for the map
Object.active id2046 ; activates the object to be processed
Object.absolutePosition -133.582/161.298/-283.208 ; Position on the map (x/y/z)
Object.rotation -90.000/0.000/0.000 ; Guidance on the map (x/y/z)
Object.setControlPointId 13 ; Control point allocation
1. Sample command sequence for Strike_at_Karkand, gpm_cq, 64 new location near "CPNAME_SK_64_hotel" and change the "event_cp_id"
Can you please translate this into english? Because this is english speaking forum
thank you
__________________ Proud to be a hacker! Programming languages I know: PHP, Javascript, XHTML, Flash Actionscript, c++
Also good at: MYSQL/Oracle databases, ERD, SQL-injection and XSS
Games I hack: Battlefield Heroes, Face of Mankind and Call of Duty MW2
__________________ Proud to be a hacker! Programming languages I know: PHP, Javascript, XHTML, Flash Actionscript, c++
Also good at: MYSQL/Oracle databases, ERD, SQL-injection and XSS
Games I hack: Battlefield Heroes, Face of Mankind and Call of Duty MW2
The command line needs to be specified here "rcon exec <command>" be placed in front because the internal client BF2 RCON console with "Unauthorized Method" would reply.
Ticket_Mod:
Code:
gameLogic.setNumberOfTickets <team> <tickets> ; Allocation of the ticket value of active play, "team" (1=China/MEC, 2=USMC)
gameLogic.setNumberOfTickets 1 1337
gameLogic.setNumberOfTickets 2 1337
gameLogic.setDefaultNumberOfTicketsEx <map_size> <team> <tickets> ; Allocation of the ticket value of the active card, "mape_size" (16,32,64), "team" (1=China/MEC, 2=USMC)
gameLogic.setDefaultNumberOfTicketsEx 64 1 1337
gameLogic.setDefaultNumberOfTicketsEx 64 2 1337
Commander_Supply_Mod:
Code:
gameLogic.supplyDropHeight <int> ; Discharge height of "m"
gameLogic.supplyDropNumSecsToLive <int> ; Period of use (not used) in "ms"
gamelogic.getTeamDropVehicle <team> ; sedate vehicle for each team
gamelogic.setTeamDropVehicle <team> <string> ; Vehicle for each team
gamelogic.setNumDropVehiclesForTeam <team> <int> ; Number of vehicles for which the team
gamelogic.AddInvalidDropVehicleObject
other_game_mod:
Code:
physics.gravity ; -15 is default, 0 is no gravity, -1... -14 you jump higher, -16... -9999 you go up, 1... 9999 more gravity
gamelogic.roundNr <int> ; current round number
sv.roundsPerMap
sv.password
sv.numPlayersNeededToStart
sv.scoreLimit
sv.configFile
sv.useGlobalRank
sv.useGlobalUnlocks
sv.ranked
sv.punkBuster
admin.runNextLevel
admin.currentLevel
admin.restartMap
mapList.list
mapList.clear
mapList.remove <map_list_id> ; Removes the specified map from the list
mapList.append <map_name> <game_mode> <map_size> ; new "map" at the end of the "maplist"
mapList.insert <map_list_id> <map_name> <game_mode> <map_size> ; Insert a new "map" in list with selected ID
Does anybody know the rcon commands to make rapid fire rockets? Some guy joined our server and logged in to rcon and started firing 100's of rockets in seconds.
I already know the rcon codes to increase things for the soldier, but I would love to know how to alter vehicle speeds and weapons and stuff too, because it's a ranked server I cannot edit files, only send rcon commands. I can't find much documented about this subject on Google.
Good work that's nice. I'm looking for faster Healing points, faster repair points and fast ammo points. Can u help me to start with that because i looked for it and i make some test but im new with that. thx.
And Manu, YES it's running on a ranked server!!! Don't worry all stuff working great.
hi!
physics.gravity ; -15 is default, 0 is no gravity, -1... -14 you jump higher, -16... -9999 you go up
physics.gravity ; -15?
Error(
rcon login "PW"
physics.gravity ; -15
but error
hi!
physics.gravity ; -15 is default, 0 is no gravity, -1... -14 you jump higher, -16... -9999 you go up
physics.gravity ; -15?
Error(
rcon login "PW"
physics.gravity ; -15
but error
what kind of error? wrong rcon password? unrecognized command?