Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH General Discussion (alliedassault.us/forumdisplay.php?f=7)
-   -   Script for Quick DM Messages (instamsg_group_x) (alliedassault.us/showthread.php?t=3928)

CiD 01-29-2002 09:18 AM

I have looked all around for a script to accomplish this task and have found nothing so I put one together and figured I post it so others looking for this type of script could be helped.

The easiest thing to do is make a text file called custom.cfg in your MOHAA/main directory and it will be executed everytime you start the game. Then copy-and-paste the following text into it:

***Start Copy***
// CiD'z Voice Skriptz

// instamsg_group_a
alias move_in "say *11"
alias fall_back "say *12"
alias left_flank "say *13"
alias right_flank "say *14"
alias hold_pos "say *15"
alias cover_fire "say *16"
alias regroup "say *17"

// instamsg_group_b
alias cover_me "say *21"
alias cover_you "say *22"
alias follow_me "say *23"
alias take_point "say *24"
alias take_lead "say *25"
alias taking_fire "say *26"
alias charge_cmd "say *27"
alias attack_cmd "say *28"
alias open_fire "say *29"

// instamsg_group_c
alias yes_sir "say *31"
alias no_sir "say *32"
alias enemy_spot "say *33"
alias sniper_spot "say *34"
alias nade_cover "say *35"
alias area_clear "say *36"
alias great_shot "say *37"
alias thanks "say *38"
alias owe_you "say *39"

// instamsg_group_d
alias all_u_got "say *41"
alias out_men "say *42"
alias yellow_belly "say *43"
alias cowards "say *44"
alias target_practice "say *45"
alias come_prepared "say *46"
alias try_again "say *47"
alias shoot_better "say *48"
alias made_mess "say *49"

// instamsg_group_e
alias get_killed "say *51"
alias poor_leader "say *52"
alias good_rid "say *53"
alias get_killed_2 "say *54"
alias get_down "say *55"
alias out_foxhole "say *56"
alias own_hiding "say *57"
alias out_my_way "say *58"

***End Copy***
You can then type in binds below these commands like the following:
bind kp_end "out_my_way"
Then all you would have to do is press 1 on the numberpad and you will speak it.
You can change the names of the aliases above to something more descriptive, but be sure to use that new name in your bind statements and don't change the stuff in the quotes or it won't work.

This script works great on mine and friends machines, but I am not responsible for any damage these scripts do to your machine.. Just covering myself http://www.alliedassault.com/ubb/smile.gif

Have fun and please be responsible w/ this script.

Thanks Coriolis for your help.


MADMAX 01-29-2002 11:01 PM

just tried it out truly awsome now my medal of honor is complete this rocks ..send the man a million bucks

coax 01-30-2002 10:10 AM

OMG, I've been trying to do this forever & a day!!! You are a life saver!! http://www.alliedassault.com/ubb/smile.gif I hacked for 5 or 6 hours one night & couldn't figure it out. I'm not a scripting aliasing genious either ya know. Heh.. http://www.alliedassault.com/ubb/wink.gif

Damn why'd they make it so damn hard? when it's a quake3 engined game & so easy in other games that use it or games like UT.

I was browsing the forum tonight looking for just such a post as this!!! http://www.alliedassault.com/ubb/biggrin.gif Thanks for posting it & the warning too. You know some ppl will be spamming though but this info would've come out anyway.


coax 01-30-2002 10:20 AM

Btw, people can go here to get the right syntax for some of the keys, mainly the keypad.. Those keys worked in Wolf anyway.. http://www.alliedassault.com/ubb/wink.gif
http://www.planetquake.com/thebind/bindlist.shtml

CiD 01-30-2002 10:27 AM

I hope it doesn't get abused..
I am just thinking that if it was easier to give a voice message we be able to use them more. It is much easier to hit 1 on the numpad to warn of an incoming nade than to hit v,3,5 but accidently hit 4 and warn of a sniper instead so everyone gets down instead of running http://www.alliedassault.com/ubb/smile.gif

[This message has been edited by CiD (edited January 30, 2002).]

MADMAX 01-30-2002 10:33 AM

Yes you are the man finally someone came out of the closet heheh well done!

Pugilist 01-31-2002 05:08 AM

CiD, I pasted your script into a new file like you instructed, and then typed bind kp_end "out_my_way" below the list of commands and it doesn't work. Can you tell me what I might be doing wrong? thanks

------------------
http://ziggy.dreamland.net/wtc/eaglem2.jpg

CiD 02-01-2002 03:32 AM

Pugilist,
First thing to try is to start up a multiplayer server game on your pc, select a team and weapon so you are in the game, then open the console and type out_my_way or any of the other alias names and hit enter. If the sound works then thats means the alias was created and there is something wrong w/ the bind.
If no sound plays that probably means that the custom.cfg file didn't get run. If that is the case then it could be a couple things. Double check that the custom.cfg file is in your MOHAA/main folder. Also if you created the file in notepad, it may be named custom.cfg.txt but windows is hiding the known file extension. Try going into your file options and uncheck 'Hide known file extensions', then get rid of the .txt extension.
If none of this helps, let me know.

[This message has been edited by CiD (edited February 01, 2002).]

coax 02-01-2002 05:55 AM

Good advice to Pugilist, CiD.. Btw, my "CiD'z Voice Skriptz" is working fine in my custom.cfg. http://www.alliedassault.com/ubb/wink.gif


I got another couple of questions though.

1) Where did you find the information for these aliases? IE. the *34 & so on. I know that is just the #'s for the menus, but I'd meybe like to expand on it if possible. Which leads to Question#2.

2) Is it possible to make certain sayings said to all instead of just team? As in, "Yes Sir" to all instead of just team? I think that could come in handy in FFA matches or even sometimes in TDM or obj matches too.


Last, Pugilist, make sure your numlock key is on, otherwise it might not work. Least I encountered that problem with my UT taunt binds.

------------------
http://home.austin.rr.com/ottf/c0aX_red_tiltr_s.gif
#~ridin'_the_wire~0

[This message has been edited by coax (edited February 01, 2002).]

CiD 02-01-2002 07:18 AM

I believe most of the multiplayer commands, like instamsg_group_x, I found just looking through cgamex86.dll with my hex editor. Some of the commands have comments in the file as well.
Unfortunately, I think that most of the code to execute the DM voice messages is compiled.
As far as I could tell from looking around is the menus themselves are just .tga files that are loaded as part of the hud. That seems to me that the menus were never meant to be very dynamic.
I guess you could put together an alias yourself that does basically the same as the voice commands. Maybe play the sound you want and then execute a say command instead of a sayteam. But then you would not have the dynamic ability of the voice classes that are assigned to the models, like axis5, airborne, ranger, etc. because you would be stuck w/ one sound.


All times are GMT -6. The time now is 12:34 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.