new to edditing


_Sniper_Spike
04-05-2004, 06:10 PM
im new to edidting, i just started editing my command menu with some commands from arses menu and some map stuff from tommy14 and some of my own stuff.. ive been doing pretty well so far but i need some commands... plz ive seen ppl say this: (name) follow me. i want to know is there a command that puts up a list of ppl on ure team u can pick from to say follow me?

byblo
04-06-2004, 08:41 AM
I guess its the variable %i

When you look at one of your teammate, the %i will take his name.

So, write in your UserConfig.cfg a thing like example :

bind F "%i, follow me!"


Or you can also made an alias :

alias FollowMe "%i, follow me!"

bind F FollowMe

You have other variable which saying your health and other stuffs, but I do not remember which was.

I recommend you to visit a HL script tutorial. (there a lot on the net)

If you wanna see nice custom configs, you can also visit this post by Mack :D:
http://userexternalosd.proboards3.com/index.cgi?board=helpsupport&action=display&num=1080339340

_Sniper_Spike
04-06-2004, 03:14 PM
thnks alot ive finished my command menu now .. no fancy stuff tho maybe ill ad a demo maker but that all... try it if u want and tell me wut u think, remember i just started.. also see server/map is it better to have that stuff just in help or in that sub menu(im talking about accesibility) and how do u give the command menu a name like on top off all the commands like say "Spikes menu"

// Everything below here is editable

"1" "HELP"
{
"1" "Server/Map"
{
CUSTOM "1" "Server Info" "!SERVERINFO"
CUSTOM "2" "Map Description" "!MAPBRIEFING"
"3" "Timeleft" "timeleft"
"4" "Nextmap" "nextmap"
}

"2" "Netgraph And Fps"
{
"1" "Simple Netgraph" "net_graph 3; net_graphpos 1"
"2" "Advanced Netgraph" "net_graph 2; net_graphpos 1"
"3" "Fps" "cl_showfps 1"
"4" "Off" "net_graph 0; cl_showfps 0"
}

"3" "Afk"
{
"1" "On" "+forward; +left; say brb im gonna be afk plz dont kick me!"
"2" "Off" "-forward; -left; say Im back!"
}

"4" "Suicide" "kill"
"5" "Exit to Menu" "exit"
}

"2" "CHANGE CLASS" "changeclass"
"3" "CHANGE TEAM" "changeteam"

// Custom maps section

MAP dod_avalanche "4" "MAP DOD_AVALANCHE"
{
"1" "'Capture those flags'" "say_team Capture those flags"
"2" "'Sniper in the church!'" "say_team WARNING!: Theres a sniper in the church!;signal_sniper"
"3" "'Spawn camper!'" "say_team WARNING!: Spawn camper!;signal_sniper"
"4" "'Get Center flag!'" "say_team Get the center flag! teamwork!"
}

MAP dod_anzio "4" "MAP DOD_ANZIO"
{
"1" "'Capture those flags'" "say_team Capture those flags"
"2" "'Capture bridge flag'" "say_team Capture bridge flag! need teamwork!;signal_backup"
"3" "'Spawn camper!'" "say_team WARNING!:Spawn camper!;signal_sniper"
"4" "'Capture plaza flag'" "say_team Capture plaza flag! need teamwork!;signal_backup"
"5" "'Sniper in plaza tower!'" "say_team WARNING!:Sniper in plaza tower!;signal_sniper"
}

MAP dod_caen "4" "MAP DOD_CAEN"
{
"1" "'Capture those flags'" "say_team Capture those flags"
"2" "'Bomb their tanks'" "say_team Bomb their tanks"
"3" "'I'm going to capture..."
{
"1" "the Allies Spawn'" "say_team I'm going to capture the Allies Spawn!"
"2" "the Allies Plaza'" "say_team I'm going to capture the Allies Plaza!"
"3" "the Allies Courtyard'" "say_team I'm going to capture the Allies Courtyard!"
"4" "the Axis Courtyard'" "say_team I'm going to capture the Axis Courtyard!"
"5" "the Axis Plaza'" "say_team I'm going to capture the Axis Plaza!"
"5" "the Axis Spawn'" "say_team I'm going to capture the Axis Spawn!"
}
"4" "'Need defense at..."
{
"1" "the Allies Spawn'" "say_team We need defense at the Allies Spawn!"
"2" "the Allies Plaza'" "say_team We need defense at the Allies Plaza!"
"3" "the Allies Courtyard'" "say_team We need defense at the Allies Courtyard!"
"4" "the Axis Courtyard'" "say_team We need defense at the Axis Courtyard!"
"5" "the Axis Plaza'" "say_team We need defense at the Axis Plaza!"
"5" "the Axis Spawn'" "say_team We need defense at the Axis Spawn!"
}
"5" "'Enemy spotted'"
{
"1" "Sniper in the bank" "say_team Be careful sniper in the bank!"
"2" "Plaza sniper" "say_team Beware plaza sniper!"
"3" "Spawn sniper" "say_team watchout! Spawn sniper! Enemy in our spawn area!"
"4" "Fire alley" "say_team Enemy seen in fire alley"
"5" "Electric alley" "say_team Enemy seen in electric alley"
}
}

"5" "VOICE MESSAGES 1"
{
"1" "'Move out'" "say_team Move out you cowards!;voice_attack"
"2" "'Fall Back'" "say_team Get back you morons we can't kill them all!;voice_fallback"
"3" "'Covering Fire'" "voice_cover"
"4" "'I need backup'" "voice_backup"
"5" "'Hold this position'" "voice_hold"
"6" "'Follow me'" "say_team %i, follow me!;voice_sticktogether"
}

"6" "VOICE MESSAGES 2"
{
"1" "'Yes Sir!'" "say_team Understood!;voice_yessir"
"2" "'No Sir'" "say_team I dont think you know what your saying!;voice_negative
"3" "'Left!'" "voice_left"
"4" "'Right!'" "voice_right"
"5" "'I need ammo'" "voice_needammo"
"6" "'Sniper!'" "voice_sniper"
"7" "'Grenade!'" "say_team Get the hell outa here!, it's gonna blow!;voice_grenade"

}

"7" "HAND SIGNALS 1"
{
"1" "'Stick Together'" "signal_sticktogether"
"2" "'Fall Back'" "say_team Get back you morons we can't kill them all!;signal_fallback"
"3" "'Yes Sir'" "say_team Understood!;signal_yes"
"4" "'No Sir'" "say_team I dont think you know what your saying!;signal_no"
"5" "'Sniper!'" "signal_sniper"
"6" "'Need Backup'" "signal_backup"
"7" "'Right'" "signal_enemyright"
"8" "'Left'" "signal_enemyleft"
}

"8" "HAND SIGNALS 2"
{
"1" "'Flank Left'" "signal_flankleft"
"2" "'Flank Right'" "signal_flankright"
"3" "'Move Out'" "say_team Move out you cowards!;signal_moveout"
"4" "'Area Clear'" "signal_areaclear"
"5" "'Covering Fire'" "signal_coveringfire"
"6" "'Hold Position'" "signal_holdposition"
"7" "'Enemy Ahead'" "signal_enemyspotted"
"8" "'Grenade!'" "say_team Get the hell outa here!, it's gonna blow!;signal_grenade"
"9" "'Help me!'" "say_team WARNING!: Enemy(s) spotted at %l, I need backup!;signal_enemyspotted"
}


:D :D ;) :cool: :p thanks!

_Sniper_Spike
04-07-2004, 08:54 AM
well actualy i do have some variables: (thanks for the %i) :D
%i -name
%c -class
%l -location
%h -health

thats all i know....

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.