Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrichdev committed Aug 4, 2020
0 parents commit 05b0d4f
Show file tree
Hide file tree
Showing 55 changed files with 47,209 additions and 0 deletions.
21 changes: 21 additions & 0 deletions _PaulsNotes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
First set up a halftime variable at the top of the code

Then find in AWE a place where the code handles SD round ending and put in this logic:

1. check that we are currently half way through the match; in other words, make sure the current round number is half the max rounds number + 1. if we are NOT currently halfway, do not switch, otherwise do the switch

I.E. 8 rounds: we want to switch on round 5, so check that the current round is 8/2 + 1 = 5

3. to do the switch follow the contents of the Do_Half_Time() function in _pam_sd.gsc for cod1. steps:

a. first switch scores. first make a backup variable of the axis score. then set the axis score to allies score and the allies score to the backup variable score of axis.

b. then switch the players. loop through all players, and if they are on axis, set their pers[team] to allies, and vice versa for allies. then in the IF statemets save the player's savedmodel to a var like axisssavedmodel and alliessavedmodel.

c. then, swap the models. if the player is on axis, set their savedmodel to axisssavedmodel, etc vice versa for allies

d. make players drop weapons and put them in spec

e. swap the head icons

f. respawn all players with the correct weapons.
5 changes: 5 additions & 0 deletions character/_utility_mp.gsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
attachFromArray(a)
{
self.awe_headmodel = character\_utility::randomElement(a);
self attach(self.awe_headmodel, "", true);
}
191 changes: 191 additions & 0 deletions default_mp.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
// Hello Dave, Would you like to play a game?
unbindall

//Movement
bind w "+forward"
bind s "+back"
bind a "+moveleft"
bind d "+moveright"

//Lean
bind q "+leanleft"
bind e "+leanright"

//Weapon Controls
bind SHIFT "+melee"
bind MOUSE1 "+attack"
bind MOUSE2 "toggle cl_run"
bind m "weapalt"

//Interaction
bind f "+activate"
bind r "+reload"

//Stance
//"raisestance"
//"lowerstance"
//"+movedown" aka hold down crouch
//"+moveup" aka jump/raise stance
//"toggleprone"
//"togglecrouch"
//"+prone"
//"goprone"
//"gocrouch"
//"+gostand"
//bind SPACE "+moveup"
//bind CTRL "lowerstance"
bind SPACE "+gostand"
bind CTRL "goprone"
bind c "gocrouch"

//Change Weapons
bind MWHEELDOWN "weapnext"
bind MWHEELUP "weapprev"


//Weapon Slots
bind 1 "weaponslot primary"
bind 2 "weaponslot primaryb"
bind 3 "weaponslot pistol"
bind 4 "weaponslot grenade"
//bind 5 "weaponslot smokegrenade"

// Mouse movement cvars
set sensitivity 5
set cl_freelook 1
set ui_mousePitch 0
set m_pitch "0.022"
set m_filter 0
set cl_mouseAccel 0

//
// MULTIPLAYER CONTROLS
//

bind t "messagemode"
bind v "mp_QuickMessage"
bind y "messagemode2"

//
// CLIENT ENVIRONMENT COMMANDS
//

bind PAUSE "toggle cl_paused"
bind ESCAPE togglemenu
bind ~ toggleconsole
bind ` toggleconsole

bind TAB +scores

bind F1 "vote yes"
bind F2 "vote no"
bind F4 +scores
bind F12 screenshotJPEG

//
// GAMETYPE DEFAULTS
//

// SHARED
set ui_allow_sniperrifles 1
set scr_allow_springfield 1
set scr_allow_nagantsniper 1
set scr_allow_kar98ksniper 1
set scr_allow_panzerfaust 1
set scr_allow_fg42 0

set scr_allow_fg42_allies 0
set scr_allow_fg42_axis 0

set scr_allow_m1carbine 1
set scr_allow_m1garand 1
set scr_allow_thompson 1
set scr_allow_bar 1
set scr_allow_enfield 1
set scr_allow_sten 1
set scr_allow_bren 1
set scr_allow_nagant 1
set scr_allow_ppsh 1
set scr_allow_kar98k 1
set scr_allow_mp40 1
set scr_allow_mp44 1

set scr_friendlyfire 0
set scr_drawfriend 0
set scr_forcerespawn 0
set scr_killcam 1
set scr_freelook 1
set scr_spectateenemy 1
set scr_teambalance 0
set scr_drophealth 1
set scr_shellshock 1

// DEATHMATCH
set scr_dm_scorelimit 50
set scr_dm_timelimit 30

// TEAM DEATHMATCH
set scr_tdm_scorelimit 100
set scr_tdm_timelimit 30

// SEARCH AND DESTROY
set scr_sd_scorelimit 10
set scr_sd_timelimit 0
set scr_sd_roundlimit 0
set scr_sd_roundlength 4
set scr_sd_graceperiod 15

// RETRIEVAL
set scr_re_scorelimit 10
set scr_re_timelimit 0
set scr_re_roundlimit 0
set scr_re_roundlength 4
set scr_re_graceperiod 15
set scr_re_showcarrier 0

// BEHIND ENEMY LINES
set scr_bel_scorelimit 50
set scr_bel_timelimit 30
set scr_bel_alivepointtime 10

// HEADQUARTERS
set scr_hq_scorelimit 450
set scr_hq_timelimit 30

// DEMOLITION
set scr_dem_scorelimit 10
set scr_dem_timelimit 0
set scr_dem_roundlimit 0
set scr_dem_roundlength 10
set scr_dem_graceperiod 15

// AWE CAPTURE THE FLAG
set scr_actf_scorelimit 5
set scr_actf_timelimit 30
set scr_actf_showcarrier 1
set scr_actf_flagrecovertime 0
set scr_actf_scoreondropped 1
set scr_actf_autoswitch "0"

// LAST TEAM STANDING
set scr_lts_scorelimit 10
set scr_lts_timelimit 0
set scr_lts_roundlimit 0
set scr_lts_roundlength 4
set scr_lts_graceperiod 15

// CONQUEST TDM
set scr_cnq_scorelimit 100
set scr_cnq_timelimit 30
set scr_cnq_campaign 0

// REINFORCED SD
set scr_rsd_roundlimit 1
set scr_rsd_roundlength 10
set scr_rsd_graceperiod 15
set b_rsd_obj_destroyBoth 1

// AWE stuff that is controllable with menus
set awe_disable 0
set awe_tripwire 0
set awe_sticky_nades 0
Loading

0 comments on commit 05b0d4f

Please sign in to comment.