Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 91 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: vsay monitor in cod2 MP
kimistatheone
General Member
Since: Mar 1, 2012
Posts: 47
Last: May 2, 2013
[view latest posts]
Level 2
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Monday, Mar. 12, 2012 09:41 pm
long time ago, when i was scripting in cod:united offensive, i use a script as a player, not as an admin, named vsay_monitor. it was placed in _teams.gsc in coduo. in AWE for coduo mod this script was responsible f.e. for the dropping healthpack. with this script a simple player (without rcon) can get anything what is scripted in the vsay_monitor.
it was based on vsay (quickcommands, quickstatements etc).
i've got the uo script.

i would like to use this script in cod2. i try to paste the script and init this in playerconnect(), but when i would like to use, it says me unknown function (vsay).

i try to insert it to the quickmessages.gsc, but nothing happened.
in cod2, is there a same function like vsay? or how could i put it from uo to cod2? is it possible?

Code:

vsay_monitor() 
{ 		 	
 for(;;) 	
      { 	self waittill("vsay", response);
 		if(response == "jump panzer")
 		{
                self iprintlnbold("haha");
 		continue;
 		}
 		self.vsay = response;
 		self thread vsay_talk();
 		wait 0.05; 
	}
}  

vsay_talk()
{  	// clear the vsay
 	self.vsay = undefined;
 	self.vsay_index = 0;
 	self.vsay_time = 0;
}
Share |
Dobriy
General Member
Since: Mar 31, 2011
Posts: 96
Last: May 23, 2012
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Mar. 13, 2012 04:01 am
For the first time I hear about such function, write to us of that you want to it can achieve to be then we can help you
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Tuesday, Mar. 13, 2012 10:26 am
attachment: application(6.7Kb)
dunno about vsay, but i believe they replaced it in cod2 by menu + gsc script.

You may wanna hook something into the scriptmenuresponse code

i attached a sample taunt mod, so you don't have to search for hours for the files where it's done ;)
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»