You are viewing our Forum Archives. To view or take place in current topics click here.
Black Ops Code/Function list
Posted:

Black Ops Code/Function listPosted:

Wougie
  • TTG Senior
Status: Offline
Joined: Feb 11, 201014Year Member
Posts: 1,699
Reputation Power: 149
Status: Offline
Joined: Feb 11, 201014Year Member
Posts: 1,699
Reputation Power: 149
Stickied by iBullet

List of most Important Dvars Coming Soon






Display Text:


Bottom Left
player iPrintln("Put Text Here");


Middle Of Screen
player iPrintlnBold("Put Text Here");


Type Writer
self thread maps\mp\gametypes\_hud_message::hintMessage("Put Text Here");






Editing LeaderBoards/Rank
self maps\mp\gametypes\_persistence::statSet( dataName, value, includeGameType );

self maps\mp\gametypes\_rank::giveRankXP( type, value, devAdd );







Button Presses
else if ( !self ButtonPressed( "DPAD_LEFT" ) )

else if ( !self ButtonPressed( "DPAD_RIGHT" ) )

else if ( !self ButtonPressed( "DPAD_UP" ) )

else if ( !self ButtonPressed( "DPAD_DOWN" ) )


Bot Settings

bot_set_difficulty( difficulty )
{
if ( difficulty == "fu" )
{
SetDvar( "sv_botMinDeathTime", "250" );
SetDvar( "sv_botMaxDeathTime", "500" );
SetDvar( "sv_botMinFireTime", "100" );
SetDvar( "sv_botMaxFireTime", "300" );
SetDvar( "sv_botYawSpeed", "14" );
SetDvar( "sv_botYawSpeedAds", "14" );
SetDvar( "sv_botPitchUp", "-5" );
SetDvar( "sv_botPitchDown", "10" );
SetDvar( "sv_botFov", "160" );
SetDvar( "sv_botMinAdsTime", "3000" );
SetDvar( "sv_botMaxAdsTime", "5000" );
SetDvar( "sv_botMinCrouchTime", "100" );
SetDvar( "sv_botMaxCrouchTime", "400" );
SetDvar( "sv_botTargetLeadBias", "2" );
SetDvar( "sv_botMinReactionTime", "30" );
SetDvar( "sv_botMaxReactionTime", "100" );
SetDvar( "sv_botStrafeChance", "1" );
SetDvar( "sv_botMinStrafeTime", "3000" );
SetDvar( "sv_botMaxStrafeTime", "6000" );
SetDvar( "scr_help_dist", "512" );
}
else if ( difficulty == "hard" )
{
SetDvar( "sv_botMinDeathTime", "250" );
SetDvar( "sv_botMaxDeathTime", "500" );
SetDvar( "sv_botMinFireTime", "400" );
SetDvar( "sv_botMaxFireTime", "600" );
SetDvar( "sv_botYawSpeed", "8" );
SetDvar( "sv_botYawSpeedAds", "10" );
SetDvar( "sv_botPitchUp", "-5" );
SetDvar( "sv_botPitchDown", "10" );
SetDvar( "sv_botFov", "100" );
SetDvar( "sv_botMinAdsTime", "3000" );
SetDvar( "sv_botMaxAdsTime", "5000" );
SetDvar( "sv_botMinCrouchTime", "100" );
SetDvar( "sv_botMaxCrouchTime", "400" );
SetDvar( "sv_botTargetLeadBias", "2" );
SetDvar( "sv_botMinReactionTime", "400" );
SetDvar( "sv_botMaxReactionTime", "700" );
SetDvar( "sv_botStrafeChance", "0.9" );
SetDvar( "sv_botMinStrafeTime", "3000" );
SetDvar( "sv_botMaxStrafeTime", "6000" );
SetDvar( "scr_help_dist", "384" );
}
else if ( difficulty == "easy" )
{
SetDvar( "sv_botMinDeathTime", "1000" );
SetDvar( "sv_botMaxDeathTime", "2000" );
SetDvar( "sv_botMinFireTime", "900" );
SetDvar( "sv_botMaxFireTime", "1000" );
SetDvar( "sv_botYawSpeed", "2" );
SetDvar( "sv_botYawSpeedAds", "2.5" );
SetDvar( "sv_botPitchUp", "-20" );
SetDvar( "sv_botPitchDown", "40" );
SetDvar( "sv_botFov", "50" );
SetDvar( "sv_botMinAdsTime", "3000" );
SetDvar( "sv_botMaxAdsTime", "5000" );
SetDvar( "sv_botMinCrouchTime", "4000" );
SetDvar( "sv_botMaxCrouchTime", "6000" );
SetDvar( "sv_botTargetLeadBias", "8" );
SetDvar( "sv_botMinReactionTime", "1200" );
SetDvar( "sv_botMaxReactionTime", "1600" );
SetDvar( "sv_botStrafeChance", "0.1" );
SetDvar( "sv_botMinStrafeTime", "3000" );
SetDvar( "sv_botMaxStrafeTime", "6000" );
SetDvar( "scr_help_dist", "256" );
}
else // 'normal' difficulty
{
SetDvar( "sv_botMinDeathTime", "500" );
SetDvar( "sv_botMaxDeathTime", "1000" );
SetDvar( "sv_botMinFireTime", "600" );
SetDvar( "sv_botMaxFireTime", "800" );
SetDvar( "sv_botYawSpeed", "4" );
SetDvar( "sv_botYawSpeedAds", "5" );
SetDvar( "sv_botPitchUp", "-10" );
SetDvar( "sv_botPitchDown", "20" );
SetDvar( "sv_botFov", "70" );
SetDvar( "sv_botMinAdsTime", "3000" );
SetDvar( "sv_botMaxAdsTime", "5000" );
SetDvar( "sv_botMinCrouchTime", "2000" );
SetDvar( "sv_botMaxCrouchTime", "4000" );
SetDvar( "sv_botTargetLeadBias", "4" );
SetDvar( "sv_botMinReactionTime", "800" );
SetDvar( "sv_botMaxReactionTime", "1200" );
SetDvar( "sv_botStrafeChance", "0.6" );
SetDvar( "sv_botMinStrafeTime", "3000" );
SetDvar( "sv_botMaxStrafeTime", "6000" );
SetDvar( "scr_help_dist", "256" );
}
}






Game Types
dm - Free-For-All
dom - Domination
sd - Search And Destroy
sab - Sabotage
tdm - Team Death Match
koth - Headquarters
ctf - Capture The Flag
dem - Demolition
oic - One In The Chamber
hlnd - Stick And Stones
gun - Gun Game
shrp - Sharpe Shooter
zom - Zombies

arc - Arcade Mode (Dead Ops?) "MPUI_ARCADE_MODE"
cmp - Campaign (Splitscreen?) "MPUI_CAMPAIGN_MODE"
sop - Campaign/Solo (Main Menu?) "MENU_SO"







Give Commands
self giveWeapon( "WEAPON NAME" );

self switchToWeapon( WEAPON NAME );

self setSpawnWeapon( WEAPON NAME );



Multiplayer Map Names And Loading Screen Names

{
map "mp_array"
loadscreen "loadscreen_mp_array"
longname "MPUI_ARRAY"
loadname "MPUI_ARRAY_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_cracked"
loadscreen "loadscreen_mp_cracked"
longname "MPUI_CRACKED"
loadname "MPUI_CRACKED_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_crisis"
loadscreen "loadscreen_mp_crisis"
longname "MPUI_CRISIS"
loadname "MPUI_CRISIS_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_firingrange"
loadscreen "loadscreen_mp_firingrange"
longname "MPUI_FIRINGRANGE"
loadname "MPUI_FIRINGRANGE_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_duga"
loadscreen "loadscreen_mp_duga"
longname "MPUI_DUGA"
loadname "MPUI_DUGA_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_hanoi"
loadscreen "loadscreen_mp_hanoi"
longname "MPUI_HANOI"
loadname "MPUI_HANOI_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_cairo"
loadscreen "loadscreen_mp_cairo"
longname "MPUI_CAIRO"
loadname "MPUI_CAIRO_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_havoc"
loadscreen "loadscreen_mp_havoc"
longname "MPUI_HAVOC"
loadname "MPUI_HAVOC_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_cosmodrome"
loadscreen "loadscreen_mp_cosmodrome"
longname "MPUI_COSMODROME"
loadname "MPUI_COSMODROME_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_nuked"
loadscreen "loadscreen_mp_nuked"
longname "MPUI_NUKED"
loadname "MPUI_NUKED_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_radiation"
loadscreen "loadscreen_mp_radiation"
longname "MPUI_RADIATION"
loadname "MPUI_RADIATION_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_mountain"
loadscreen "loadscreen_mp_mountain"
longname "MPUI_MOUNTAIN"
loadname "MPUI_MOUNTAIN_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_villa"
loadscreen "loadscreen_mp_villa"
longname "MPUI_VILLA"
loadname "MPUI_VILLA_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}
{
map "mp_russianbase"
loadscreen "loadscreen_mp_russianbase"
longname "MPUI_RUSSIANBASE"
loadname "MPUI_RUSSIANBASE_CAPS"
gametype "dm tdm sd sab dom koth twar war sur ctf vdm vtdm mini"
}






Models/Items

( "frag_grenade_short_mp" );
( "dogs_mp" );
( "dog_bite_mp" );
( "explosive_bolt_mp" );
( "t5_weapon_law_stow" );
( "weapon_rpg7_stow" );
( "t5_weapon_strela_stow" );
( "t5_weapon_mp_crossbow_stow" );
( "weapon_claymore_detect" );
( "weapon_c4_mp_detect" );
( "t5_weapon_acoustic_sensor_world_detect" );
( "t5_weapon_scrambler_world_detect" );
( "t5_weapon_camera_spike_world_detect" );
( "t5_weapon_camera_head_world_detect" );
( "t5_weapon_tactical_insertion_world_detect" );
( "t5_weapon_camera_head_world" );
( "napalmblob_mp" );
( "scavenger_item_mp" );
( "hud_scavenger_pickup" );
( "minigun_wager_mp" );
( "m202_flash_wager_mp" );





Stances
Standing - ????
Crouch - ????
Prone -     if ( !self isOnGround() )






Custom Class Names

level.classMap["custom1"] = "CLASS_CUSTOM1";
level.classMap["custom2"] = "CLASS_CUSTOM2";
level.classMap["custom3"] = "CLASS_CUSTOM3";
level.classMap["custom4"] = "CLASS_CUSTOM4";
level.classMap["custom5"] = "CLASS_CUSTOM5";

level.classMap["prestige1"] = "CLASS_CUSTOM6";
level.classMap["prestige2"] = "CLASS_CUSTOM7";
level.classMap["prestige3"] = "CLASS_CUSTOM8";
level.classMap["prestige4"] = "CLASS_CUSTOM9";
level.classMap["prestige5"] = "CLASS_CUSTOM10";






Visions

berserker.vision
camera_spike_mp.vision
cheat_bw.vision
cheat_bw_invert.vision
concussion_grenade.vision
creek_1.vision
creek_1b.vision
creek_1_ambush_path.vision
creek_1_dark.vision
creek_1_helicopter.vision
creek_1_helicopter_start.vision
creek_1_helicopter_water.vision
creek_1_helicopter_water_exit.vision
creek_1_interior.vision
creek_1_rain.vision
creek_1_tunnel.vision
creek_1_tunnel_cave_light_end.vision
creek_1_tunnel_cliffhanger.vision
creek_1_tunnel_collapse.vision
creek_1_tunnel_enter.vision
creek_1_tunnel_off.vision
creek_1_village.vision
creek_1_war_room.vision
creek_1_water.vision
creek_drown.vision
cuba.vision
cuba_car.vision
cuba_compound.vision
cuba_courtyard.vision
cuba_drive.vision
cuba_end.vision
cuba_flame.vision
cuba_mansion.vision
cuba_runway_base.vision
cuba_runway_vista.vision
cuba_streets.vision
cuba_streets_floodlights.vision
cuba_sunrise.vision
cuba_zipline.vision
death.vision
default.vision
default_night.vision
drown.vision
flare.vision
flashpoint.vision
flashpoint_night.vision
flashpoint_slide_a.vision
flashpoint_tunnels.vision
flash_grenade.vision
fullahead_base.vision
fullahead_betrayal.vision
fullahead_flashlight.vision
fullahead_nova6.vision
fullahead_post_flashlight.vision
fullahead_reznov.vision
fullahead_ship_out.vision
fullahead_start.vision
huey_city.vision
hue_city.vision
hue_city_streets.vision
infrared.vision
infrared_rebirth.vision
infrared_snow.vision
interrogation_escape.vision
int_brainwash.vision
int_castro_reveal.vision
int_esc.vision
int_esc_numbers.vision
int_first_junction.vision
int_frontend_char_trans.vision
int_frontend_default.vision
int_frontend_menus.vision
int_frontend_narrative_1.vision
int_frontend_narrative_2.vision
int_frontend_narrative_3.vision
int_frontend_narrative_4.vision
int_frontend_narrative_5.vision
int_frontend_narrative_6.vision
int_frontend_terminal.vision
int_hudson_control.vision
int_rocket_hallway.vision
in_country.vision
khe_sanh.vision
khe_sanh_e1_intro.vision
khe_sanh_e1_intro_flash.vision
khe_sanh_e2_trenchbattle.vision
khe_sanh_e2_trenchbattle_bunker.vision
khe_sanh_e3_trenchdefense.vision
khe_sanh_e4_hillbattle.vision
khe_sanh_e4_hillbattle2.vision
khe_sanh_e5_airfieldbattle.vision
khe_sanh_e6_siege.vision
kowloon.vision
kowloon_level_start.vision
kowloon_rooftop.vision
kowloon_rooftop_lightning.vision
kowloon_rooftop_slidearea.vision
laststand.vision
low_health.vision
macv_main.vision
macv_stairwell.vision
mpintro.vision
mpoutro.vision
mp_array.vision
mp_berlinwall.vision
mp_cairo.vision
mp_cosmodrome.vision
mp_cracked.vision
mp_crisis.vision
mp_discovery.vision
mp_duga.vision
mp_firingrange.vision
mp_hanoi.vision
mp_havoc.vision
mp_mountain.vision
mp_munich.vision
mp_nuked.vision
mp_nuked2.vision
mp_radiation.vision
mp_russianbase.vision
mp_underwater.vision
mp_vdm_cosmopoc.vision
mp_villa.vision
neutral.vision
pentagon.vision
pentagon_highway.vision
pentagon_interior.vision
pentagon_kennedy.vision
pentagon_kennedy_bloom.vision
pentagon_limousine.vision
pentagon_security.vision
pentagon_speed_elevator.vision
pentagon_speed_security.vision
pentagon_tarmac.vision
pentagon_warroom.vision
pow.vision
pow_base.vision
pow_bloom.vision
pow_cage.vision
pow_cave.vision
pow_endfight.vision
pow_face_up.vision
pow_landing.vision
pow_midcave.vision
pow_mountain.vision
pow_office.vision
pow_office2.vision
pow_roulette.vision
pow_tunnels.vision
quagmire_1.vision
quagmire_2.vision
quagmire_3.vision
quagmire_4.vision
quagmire_default.vision
rebirth.vision
rebirth_btr_rail.vision
rebirth_cargo_container.vision
rebirth_docks.vision
rebirth_elevator_shaft.vision
rebirth_gas_attack.vision
rebirth_lab_exterior.vision
rebirth_lab_interior.vision
rebirth_lab_interior_2.vision
rebirth_stairwell_security_room.vision
rebirth_steiner_kill.vision
rebirth_tunnel_exit.vision
revive.vision
river.vision
river_boat.vision
river_burn.vision
river_land.vision
river_plane.vision
river_village.vision
tvguided_mp.vision
tvguided_sp.vision
ui_viewer.vision
underwaterbase.vision
underwaterbase_swimming.vision
uwb_bigigc.vision
uwb_broadcastcenter.vision
uwb_chopper.vision
uwb_corridor_01.vision
uwb_corridor_02.vision
uwb_dive.vision
uwb_dragofight.vision
uwb_end.vision
uwb_escape.vision
uwb_moonpool.vision
uwb_shipdeck.vision
uwb_shipint.vision
uwb_swimtosurface.vision
vorkuta_bike.vision
vorkuta_exterior.vision
vorkuta_inclinator.vision
vorkuta_interior.vision
vorkuta_mines.vision
vorkuta_slingshot.vision
vorkuta_warehouse.vision
water.vision
wmd.vision
wmd_avalanche.vision
wmd_gforce.vision
wmd_jumpcut.vision
wmd_lower_valley.vision
wmd_lower_valley_interior.vision
wmd_pilot.vision
wmd_power_station.vision
wmd_radar_station.vision
wmd_runway.vision
wmd_snow_hide.vision
wmd_sr71.vision
wmd_sr71barracks.vision
wmd_sr71cam.vision
wmd_sr71_rts_barracks_destroy.vision
wmd_sr71_rts_interior.vision
wmd_takeoff.vision
zombie.vision
zombietron_afternoon.vision
zombietron_afternoon_death.vision
zombietron_day.vision
zombietron_evening.vision
zombietron_evening_rooftop.vision
zombietron_morning.vision
zombietron_morning_island.vision
zombie_coast.vision
zombie_cosmodrome.vision
zombie_death.vision
zombie_frontend_default.vision
zombie_frontend_menus.vision
zombie_last_stand.vision
zombie_mountain.vision
zombie_neutral.vision
zombie_pentagon.vision
zombie_pentagon_electrician.vision
zombie_pentagon_lab.vision
zombie_pentagon_offices_poweroff.vision
zombie_pentagon_warroom.vision
zombie_sumpf_dogs.vision
zombie_theater.vision
zombie_theater_erooms_pentagon.vision
zombie_theater_eroom_asylum.vision
zombie_theater_eroom_girlnew.vision
zombie_theater_eroom_girlold.vision
zombie_turned.vision


Special Thanks to Cheez

-Wougie

The following 42 users thanked Wougie for this useful post:

Maarreeez (01-27-2011), SP3NSNAZ (01-21-2011), TTG_Unbound (01-09-2011), TTGiKiiNG (01-03-2011), Flog_Gnaw (01-01-2011), imlouiedawg (01-01-2011), -Casper- (12-26-2010), Zion (12-25-2010), M3_HA (12-23-2010), Brevvo (12-21-2010), Pozed (12-21-2010), Toxism (12-20-2010), Iowa (12-19-2010), idBiGot (12-19-2010), -xTraumaZ- (12-18-2010), ryanxmorici (12-18-2010), rayanXxX (12-18-2010), NiQuee (12-15-2010), Blue-Balls (12-14-2010), 1NF3CT3DM0DZ (12-14-2010), -DeagleUK (12-12-2010), MaFiAzInCHaRG3 (12-10-2010), SuperHazed (12-09-2010), Zakedan (12-08-2010), MuschelKubus117 (12-08-2010), mexicanxRainbow (12-08-2010), -REDBULL- (12-05-2010), TTG_BOBBLE_H3AD (12-04-2010), SteelSeries (12-04-2010), Python1live (12-03-2010), tracti0nz (11-30-2010), GucciModz (11-28-2010), ToTaLxMaNiC (11-28-2010), smashingeddie (11-28-2010), Bone-Marrow (11-27-2010), EzMoneY (11-26-2010), SkidHD (11-26-2010), D-WADE-L-JAMES (11-26-2010), TTG_Buzz (11-26-2010), xR4VE_iT_MODx (11-26-2010), -Punx- (11-26-2010), KSIxSP33D (11-26-2010)
#2. Posted:
KSIxSP33D
  • TTG Senior
Status: Offline
Joined: Aug 31, 201013Year Member
Posts: 1,379
Reputation Power: 53
Status: Offline
Joined: Aug 31, 201013Year Member
Posts: 1,379
Reputation Power: 53
You sir are the best
#3. Posted:
TTG_Buzz
  • TTG Senior
Status: Offline
Joined: Feb 11, 201014Year Member
Posts: 1,420
Reputation Power: 143
Status: Offline
Joined: Feb 11, 201014Year Member
Posts: 1,420
Reputation Power: 143
Very Nice

Awesome post

Thanked
#4. Posted:
Maximilian
  • TTG Fanatic
Status: Offline
Joined: Jul 05, 201013Year Member
Posts: 4,077
Reputation Power: 195
Status: Offline
Joined: Jul 05, 201013Year Member
Posts: 4,077
Reputation Power: 195
Awesome, only awesome!

Why you are't one of the stuff?
#5. Posted:
D-WADE-L-JAMES
  • TTG Natural
Status: Offline
Joined: Jun 04, 201014Year Member
Posts: 900
Reputation Power: 37
Status: Offline
Joined: Jun 04, 201014Year Member
Posts: 900
Reputation Power: 37
nice post thank you and for the patch it does not work for me
#6. Posted:
GONZO_EAT_WEENIE
  • TTG Contender
Status: Offline
Joined: Sep 19, 201013Year Member
Posts: 3,452
Reputation Power: 263
Status: Offline
Joined: Sep 19, 201013Year Member
Posts: 3,452
Reputation Power: 263
very nice post wougie ,
+repped
#7. Posted:
xLasers
  • TTG Contender
Status: Offline
Joined: Aug 06, 201013Year Member
Posts: 3,068
Reputation Power: 141
Status: Offline
Joined: Aug 06, 201013Year Member
Posts: 3,068
Reputation Power: 141
This is useless without a method to decrypt the .ff files...
#8. Posted:
vonHelms
  • TTG Natural
Status: Offline
Joined: Dec 18, 200914Year Member
Posts: 954
Reputation Power: 50
Status: Offline
Joined: Dec 18, 200914Year Member
Posts: 954
Reputation Power: 50
iTz_NoT_hD wrote This is useless without a method to decrypt the .ff files...


I agree, wtf is the point of this post unless we have a method to decrypt the ff files?

I don't believe this should be stickied until the point of the release of the decrypted fast files, otherwise, this is just useless, sorry!
#9. Posted:
xKryptic
  • Retired Staff
Status: Offline
Joined: Jun 24, 200914Year Member
Posts: 11,066
Reputation Power: 1528
Status: Offline
Joined: Jun 24, 200914Year Member
Posts: 11,066
Reputation Power: 1528
iTz_NoT_hD wrote This is useless without a method to decrypt the .ff files...


Yes it is.

Hopefully someone will will figure one out though.
#10. Posted:
Hender
  • TTG Senior
Status: Offline
Joined: Dec 31, 200914Year Member
Posts: 1,582
Reputation Power: 71
Status: Offline
Joined: Dec 31, 200914Year Member
Posts: 1,582
Reputation Power: 71
Nice post, +Rep for you...

-Baller
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.