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

Members Online

»
0 Active | 71 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: PLAYER HUD on Crosshair
robert119966
General Member
Since: Feb 12, 2012
Posts: 19
Last: Feb 7, 2014
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Wednesday, Feb. 13, 2013 08:50 pm
ENG ;
Hi
where can I find a script:
when tracking the player is showing up his nickname because he wanted me to add to this rank money etc

If the council can not Find an access this script if anyone can share it?

sryy for bad english

PL :
Czesc
gdzie moge znaleźć skrypt :
gdy namierze na gracza to pokazuje sie jego nick bo chcial bym dodac do tego rank money itp

Jezeli nie da rady znalesc tego skryptu czy moze ktos go udostepnic ?
Share |
twix90
General Member
Since: Jan 16, 2012
Posts: 15
Last: Apr 28, 2013
[view latest posts]
Level 1
Category: CoD2 Scripting
Posted: Wednesday, Mar. 13, 2013 04:13 pm
wypierdalaj
Share |
PatmanSan
General Member
Since: Jul 3, 2009
Posts: 8
Last: Feb 6, 2014
[view latest posts]
Level 0
Category: CoD2 Scripting
Posted: Saturday, Mar. 16, 2013 01:43 am
Something like this:

Code:
scopedonMonitor()
{
	self endon("disconnect");
	self endon("killed_player");

	if(getcvar("g_gametype") == "dm") teamplay = false;
		else teamplay = true;

	while(isAlive(self))
	{
		wait(0.1);
		if(self playerads())
		{
			scopedon = undefined;
			vStart = self getEye() + (0,0,20);
			vForward = [[level.ex_vectorscale]](anglesToForward(self getplayerangles()), 100000);
			trace = bulletTrace(vStart, vStart + vForward, true, self);
			if(trace["fraction"] != 1 && isDefined(trace["entity"]) && isPlayer(trace["entity"])) scopedon = trace["entity"];

			if(isDefined(scopedon) && (!teamplay || scopedon.pers["team"] != self.pers["team"]))
			{
				if(!isDefined(self.scopedon_hud))
				{
					self.scopedon_hud = newClientHudElem(self);
					self.scopedon_hud.archived = false;
					self.scopedon_hud.horzAlign = "fullscreen";
					self.scopedon_hud.vertAlign = "fullscreen";
					self.scopedon_hud.alignx = "center";
					self.scopedon_hud.aligny = "middle";
					self.scopedon_hud.x = 320;
					self.scopedon_hud.y = 200;
					self.scopedon_hud.alpha = 1;
					self.scopedon_hud.color = (0,0,1);
					self.scopedon_hud.fontScale = 1.2;
				}
				self.scopedon_hud setPlayerNameString(scopedon);
			}
			else if(isDefined(self.scopedon_hud)) self.scopedon_hud destroy();
		}
		else if(isDefined(self.scopedon_hud)) self.scopedon_hud destroy();
	}
}


edited on Mar. 15, 2013 07:16 pm by PatmanSan

edited on Mar. 15, 2013 07:18 pm by PatmanSan
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

»