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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Hud Scores - Scripting
DrBiggzz
General Member
Since: Apr 9, 2007
Posts: 98
Last: Sep 24, 2022
[view latest posts]
Level 3
Forum Moderator
Im a fan of MODSonair
Category: CoD Mapping
Posted: Friday, Jun. 26, 2009 02:58 am
Ok, Here Is My Player Scores Thread
Code:

DisplayPlayerStatus()
{

	leet_playerstats = newClientHudElem(self);	
	leet_playerstats.x = 35;
	leet_playerstats.y = 250;
	leet_playerstats.alignX = "center";
	leet_playerstats.alignY = "middle";
	leet_playerstats.sort = -3;
	leet_playerstats.alpha = 1;
	leet_playerstats.fontScale = 0.7;
	leet_playerstats.archived = true;
	while(1)
	{
		wait 0.1;
		if(!isValidPlayer(self))
			return;
		leet_playerstats setValue(self.score);
	}


}

DisplayPlayerStatus2()
{

	leet_playerstats = newClientHudElem(self);	
	leet_playerstats.x = 35;
	leet_playerstats.y = 200;
	leet_playerstats.alignX = "center";
	leet_playerstats.alignY = "middle";
	leet_playerstats.sort = -3;
	leet_playerstats.alpha = 1;
	leet_playerstats.fontScale = 0.7;
	leet_playerstats.archived = true;
	while(1)
	{
		wait 0.1;
		if(!isValidPlayer(self))
			return;
		leet_playerstats setValue(self.deaths);
	}


}


I HJave The Kills And Deaths Working Noww To Ass The HitLocations As One Like If I Want Bashes HeadShots And So Forth Would i Make the

(self.BIP01 Head)

or how would it go to add the hitlocations on the scores?
Share |
DrBiggzz
General Member
Since: Apr 9, 2007
Posts: 98
Last: Sep 24, 2022
[view latest posts]
Level 3
Forum Moderator
Im a fan of MODSonair
Category: CoD Mapping
Posted: Sunday, Jun. 28, 2009 11:05 pm
Is The Any One Who Can Help???
Share |
Wally.*
General Member
Since: Dec 2, 2007
Posts: 49
Last: Jul 7, 2009
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Sunday, Jun. 28, 2009 11:52 pm
I think IWNatations and searched the forums would be the best place for old cod stuff.
I know it's easy enough to do in Cod4 and cod5 and possible in cod2 but I know nothing when it comes to cod1. sorry.
Share |
DrBiggzz
General Member
Since: Apr 9, 2007
Posts: 98
Last: Sep 24, 2022
[view latest posts]
Level 3
Forum Moderator
Im a fan of MODSonair
Category: CoD Mapping
Posted: Monday, Jun. 29, 2009 10:18 pm
Well I Looked Through All 88 Pages
Share |
Wally.*
General Member
Since: Dec 2, 2007
Posts: 49
Last: Jul 7, 2009
[view latest posts]
Level 2
Category: CoD Mapping
Posted: Tuesday, Jun. 30, 2009 12:13 am
Ok, I got this after a quick search:
Because of the bad language forum filter:
whenever u see "HitLoc" add a lowercase "s" in front
Code:
self iprintln(HitLoc);   // "s"

UO code, I suppose the same for CoD1.
right_hand
left_hand
right_arm_upper
right_arm_lower
left_arm_upper
left_arm_lower
head
neck
right_foot
left_foot
right_leg_lower
left_leg_lower
right_leg_upper
left_leg_upper
torso_upper
torso_lower  

So now all u need is an IF statments
Code:
location = "";
if(HitLoc == "torso_lower")   // "s"
     location = "Lower Torso ";
self iprintln( location);
Share |
DrBiggzz
General Member
Since: Apr 9, 2007
Posts: 98
Last: Sep 24, 2022
[view latest posts]
Level 3
Forum Moderator
Im a fan of MODSonair
Category: CoD Mapping
Posted: Tuesday, Jun. 30, 2009 02:35 pm
Yeh Ty For Help But I Had Kill3r Help Me Out Already.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD Mapping

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

»