Gå til innhold

"Guide": Buy Script i CS Source.


Anbefalte innlegg

Skrevet

Her følger ett komplett oppsett for aliases for script i CS:S

MERK: det anbefales ikke av meg å bruke hele dette, ettersom jeg fikk feilmelding og crash av CS:S hver gang jeg executa scriptet (det er for stort for script bufferen i CS:S kan jeg bare anta). Derfor anbefaler jeg at du bare bruker de funksjonene du finner mest verdifulle.

 

//-- NextWish's Counter-Strike: Source Script v17.2
//-- http://www.nextwish.org

//-- Personal Settings
hud_fastswitch 1    // Turns On Instant Weapon Switching
con_enable 1      // Forces Console On
con_notifytime 2    
contimes 3      	

alias purchaseammo_p "buy primammo"
alias purchaseammo_s "buy secammo"
alias purchaseammo_lp "buy primammo"
alias purchaseammo_ls "buy secammo"

//-- Shortening Common Commands
alias ms1 "menuselect 1"
alias ms2 "menuselect 2"
alias ms3 "menuselect 3"
alias ms4 "menuselect 4"
alias ms5 "menuselect 5"
alias ms6 "menuselect 6"
alias ms7 "menuselect 7"
alias ms8 "menuselect 8"
alias ms9 "menuselect 9"
alias ms0 "slot10; w; w; slot10; w; w; w; w; w; w; slot10; slot10; slot10; w; slot10"

alias w "wait"
alias w2 "w; w"
alias w3 "w; w2"
alias dv0 "" // Temp workaround for echo
alias dv1 "developer 1"
alias dv3 "developer 0" // See BestWeap Alias!

alias mapchange "w3; w2; rcon mp_timelimit .1; w3; w2; rcon mp_timelimit 30"

//-- Duck Jump
alias +djump "+jump; +duck"
alias -djump "-duck; -jump"

//-- Plant C4
alias +plant_c4 "use weapon_c4; w; +attack; +duck; say_team Cover Me, I'm Planting The C4!"
alias -plant_c4 "-attack; -duck; bestweap"

//-- Drop Sec/Pri/C4
alias pdrop "slot1; drop"
alias sdrop "slot2; drop"
alias c4drop "use weapon_c4; drop; say_team I am DROPPING the C4 - Use the rader to locate it!; r_reporting"

//-- Quick Knife Stab
alias +quickstab "use weapon_knife; w; +attack2"
alias -quickstab "w3; -attack2; w; bestweap"


//-- Quick Knife Slash
alias +quickslash "use weapon_knife; w; +attack"
alias -quickslash "w3; -attack; w; bestweap"

//-- Radar Toggler
alias radar_t radar_off
alias radar_off "alias radar_t radar_on; hideradar"
alias radar_on "alias radar_t radar_off; drawradar"

//--Walk Toggler
alias walk_t walk_on
alias walk_on "alias walk_t walk_off; +speed; dv1; echo NWcs: Walking Speed.; dv0"
alias walk_off "alias walk_t walk_on; -speed; dv1; echo NWcs: Running Speed.; dv0"

//-- Crouch Toggler
alias crouch_t crouch_on
alias crouch_on "alias crouch_t crouch_off; +duck; dv1; echo NWcs: Crouching Engaged.; dv0"
alias crouch_off "alias crouch_t crouch_on; -duck; dv1; echo NWcs: Crouching Disengaged.; dv0"

//-- Grenade Toggler
alias grenselect_t grenselect_fgren
alias grenselect_fgren "alias grenselect_t grenselect_hegren; alias +throwgren grenhe; dv1; echo NWcs: HIGH EXPLOSIVE Grenade Selected; dv0"
alias grenselect_hegren "alias grenselect_t grenselect_sgren; alias +throwgren grenf; dv1;echo NWcs: FLASHBANG Selected; dv0"
alias grenselect_sgren "alias grenselect_t grenselect_fgren; alias +throwgren grens; dv1;echo NWcs: SMOKE Grenade Selected; dv0"

alias -throwgren "w3; -attack; w3; -attack; w3; -attack; w3; bestweap"
alias +throwgren "grenf"

alias grenf "use weapon_flashbang; w3; w2; +attack; say_team Shield Your Eyes! I'm Throwing a Flashbang!"
alias grens "use weapon_smokegrenade; w3; w2; +attack; say_team Making Cover! I'm Throwing a Smoke Grenade!"
alias grenhe "use weapon_hegrenade; w3; w2; +attack; say_team Take Cover! I'm Throwing a High Explosive Grenade!"

//-- Grenade Throwers
alias +throwfgren "use weapon_flashbang; w3; w2; +attack; say_team Shield Your Eyes! I'm Throwing a Flashbang!"
alias -throwfgren "w3; w3; -attack; w3; w3; bestweap"
alias +throwhegren "use weapon_hegrenade; w3; w2; say_team Take Cover! I'm Throwing a High Explosive Grenade!; +attack"
alias -throwhegren "w3; w3; -attack; w3; w3; bestweap"
alias +throwsgren "use weapon_smokegrenade; w3; w2; +attack; say_team Making Cover! I'm Throwing a Smoke Grenade!"
alias -throwsgren "w3; w3; -attack; w3; w3; bestweap"

//-- Buy Ammo
alias +quickammo "alias slot1a purchaseammo_p;alias slot2a purchaseammo_s"
alias -quickammo "alias slot1a slot1; alias slot2a slot2"

alias slot1a "slot1"
alias slot2a "slot2"

//-- Select Best Weapon
alias bestweap "dv3; use weapon_knife; grenades; pistol; shotgun; submach; rifle; auto"
alias grenades "use weapon_flashbang; use weapon_smokegren; use weapon_hegrenade"
alias pistol "use weapon_glock; use weapon_usp; use weapon_deagle; use weapon_p228; use weapon_elite; use weapon_fiveseven"
alias shotgun "use weapon_m3; use weapon_xm1014"
alias submach "use weapon_mp5navy; use weapon_tmp; use weapon_p90; use weapon_mac10; use weapon_ump45"
alias rifle "use weapon_ak47; use weapon_sg552; use weapon_m4a1; use weapon_aug; use weapon_scout; use weapon_awp; use weapon_g3sg1; use weapon_sg550; use weapon_galil; use weapon_famas"
alias auto "use weapon_m249"

//-- Buy Items
alias buynvgs "buy nvgs; nightvision; bestweap"


//-- Buy Weapon: Pistols
alias buyusp "buy usp; purchaseammo_ls; bestweap"
alias buyglock "buy glock; purchaseammo_ls; bestweap"
alias buydeagle "buy deagle; purchaseammo_s; bestweap"
alias buyp228 "buy p228; purchaseammo_s; bestweap"
alias buyteampistol "buy fn57; buy elites; purchaseammo_ls; bestweap"

//-- Buy Weapons: Shotguns
alias buym3 "buy m3; buy 12gauge; purchaseammo_p; bestweap"
alias buyxm1014 "buy xm1014; purchaseammo_p; bestweap"

//-- Buy Weapons: Sub-Machine Guns
alias buymp5 "buy mp5; purchaseammo_p; bestweap"
alias buyp90 "buy p90; purchaseammo_p; bestweap"
alias buyump45 "buy ump45; purchaseammo_p; bestweap"
alias buyteamsmall "buy mac10; buy tmp; purchaseammo_p; bestweap"

//-- Buy Weapons: Rifles
alias buyteamsniper "buy g3sg1; buy sg550; purchaseammo_lp; bestweap"
alias buyteamlight "buy galil; buy famas; purchaseammo_p; bestweap"
alias buyteammedium "buy ak47; buy m4a1; purchaseammo_p; bestweap"
alias buyteamheavy "buy sg552; buy aug; purchaseammo_p; bestweap"
alias buyscout "buy scout; purchaseammo_lp; bestweap"
alias buyawp "buy awp; purchaseammo_lp; bestweap"

//-- Buy Weapons: Machine Guns
alias buym249 "buy m249; purchaseammo_p; bestweap"
//-- Combos
// Many thanks to rizzuh for the templates.
alias combo_refresh "primammo; secammo; buy flashbang; buy defuser"
alias combo_sniper "buyawp; buydeagle; buy vesthelm; buy vest; buy flashbang; buy smokegrenade"

alias combo_ak47m4a1 "buyteammedium; buy vesthelm; buy vest; buy flashbang; buy defuser"
alias combo_goodies "buy vesthelm; buy vest; buy defuser; buy flashbang; buy flashbang"

//-- One Button Radio's
// AFAIK theres is no way to directly do them in CS:S, if anyone knows let me know!
alias r_coveme    "radio1; ms1; ms0"
alias r_takepoint  "radio1; ms2; ms0"
alias r_holdpos  	"radio1; ms3; ms0"
alias r_regroup  	"radio1; ms4; ms0"
alias r_followme  	"radio1; ms5; ms0"
alias r_takingfire  "radio1; ms6; ms0"
alias r_go      "radio2; ms1; ms0"
alias r_fallback  	"radio2; ms2; ms0"
alias r_sticktog  	"radio2; ms3; ms0"
alias r_getinpos  	"radio2; ms4; ms0"
alias r_stormfront  "radio2; ms5; ms0"
alias r_report    "radio2; ms6; ms0"
alias r_roger    "radio3; ms1; ms0"
alias r_emenyspot  "radio3; ms2; ms0"
alias r_needbackup  "radio3; ms3; ms0"
alias r_sectorclear	"radio3; ms4; ms0"
alias r_inposition  "radio3; ms5; ms0"
alias r_reportingin	"radio3; ms6; ms0"
alias r_getout    "radio3; ms7; ms0"
alias r_negative  	"radio3; ms8; ms0"
alias r_enemydown  "radio3; ms9; ms0"


//-- EOF

 

Selv har jeg laget denne autoexec.cfg fila som jeg bruker. Merk at jeg bare har script for kjøp av de mest vanlige våpnene jeg bruker: M4/AK, AUG/SIG FAMAS/GALIL, MP5, DE, AWM, granater... kit og kevlar.

 

autoexec.cfg må du lage selv, og fila legges i "X:\\Steam\SteamApps\[email protected]\counter-strike source\cstrike\cfg\"

 

Du kan selvsagt bytte ut bind knappene med andre knapper som passer deg bedre :)

 

 

 

bind "F3" "toggleconsole"

bind "/" "toggleconsole"

 

cl_autowepswitch "1"

cl_righthand "1"

sensitivity "5"

net_graph "0"

hud_fastswitch "1"

name "[NOR]MrLee"

cl_cmdrate "80"

cl_updaterate "50"

con_enable "1"

rate "25000"

cl_logofile "materials/vgui/logos/spray.vtf"

 

alias purchaseammo_p "buy primammo"

alias purchaseammo_s "buy secammo"

alias purchaseammo_lp "buy primammo"

alias purchaseammo_ls "buy secammo"

 

alias +plant_c4 "use weapon_c4; w; +attack; +duck; say_team Cover Me, I'm Planting The C4!"

alias -plant_c4 "-attack; -duck; bestweap"

 

alias slot1a "slot1"

alias slot2a "slot2"

alias pdrop "slot1; drop"

 

alias buymp5 "buy mp5; purchaseammo_p"

alias buydeagle "buy deagle; purchaseammo_s"

alias buyteamlight "buy galil; buy famas; purchaseammo_p"

alias buyteammedium "buy ak47; buy m4a1; purchaseammo_p"

alias buyteamheavy "buy sg552; buy aug; purchaseammo_p"

alias buyawp "buy awp; purchaseammo_lp"

 

bind "-" "buy vesthelm; buy vest"

bind "." "buy hegrenade; buy flashbang; buy flashbang; buy smokegrenade"

bind "," "buy defuser"

bind "`" "toggleconsole"

bind "~" "toggleconsole"

bind "alt" "+plant_c4"

bind "KP_END" "buy hegrenade"

bind "KP_DOWNARROW" "buy flashbang"

bind "KP_PGDN" "buy smokegrenade"

bind "KP_LEFTARROW" "buyawp"

bind "KP_5" "buydeagle"

bind "KP_RIGHTARROW" "buymp5"

bind "KP_HOME" "buyteammedium"

bind "KP_UPARROW" "buyteamheavy"

bind "KP_PGUP" "buyteamlight"

bind "mouse4" "buy vesthelm; buy vest; buy hegrenade"

bind "mouse5" "say_team Don't block!!!"

bind "ALT" "+plant_c4"

bind "KP_INS" "buy vesthelm; buy vest"

bind "KP_DEL" "buy defuser"

bind "KP_ENTER" "buy hegrenade; buy flashbang; buy flashbang; buy smokegrenade"

 

bind "KP_PLUS" "buy nvgoogles"

bind "KP_MINUS" "buy shield"

bind "*"

bind "KP_SLASH"

//bind "\" "toggleconsole"

//bind "/" "toggleconsole"

Videoannonse
Annonse
Skrevet (endret)

det øverste er bare ett eksempel på (en veldig omfattende) kode du kan bruke. (som ikke fungerer fordi det er for stort. iallefall i mitt tilfelle)

 

det nederste er det jeg bruker i autoexec.cfg fila. Jeg bruker bare deler av den store fila..for å si det slik...

Endret av MrLee
Skrevet

Så eg trenger ikke legge noen ting i configen, bare kopiere det du har krevet der og lager det som autoexec.cfg og legge det på rett plass?

 

Har aldri laget buy script for

Skrevet

jepp.

da får du riktignok mitt oppsett med rates, nick og slikt, og mine knapper for kjøp av våpen (keypad basert)

 

fjerner du alt over "cl_logofile "materials/vgui/logos/spray.vtf"" så får du bare buy scriptet, og ingen av mine "custom settings" for selve CS:S :)

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
  • Hvem er aktive   0 medlemmer

    • Ingen innloggede medlemmer aktive
×
×
  • Opprett ny...