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

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Page
Previous Page
subscribe
Author Topic: blackscreen mod
OLD_MAN_WITH_GUN
General Member
Since: May 13, 2006
Posts: 754
Last: Jan 23, 2010
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Friday, Jan. 12, 2007 07:27 pm
Yep, sorry.
Got the same result after a few tries.

Share |
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Jan. 12, 2007 07:33 pm
ok I added else in between self waittill)"killed_player"); and if(self.sessionteam == "spectator") and it worked once then never worked again. any ideas?

waittill("killed_player");
else
if(self.sessionteam == "spectator")
return;
Share |
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Friday, Jan. 12, 2007 08:08 pm
owell, thnx for the help, if you find out anymore info can you post or pm plzzz.
Share |
OLD_MAN_WITH_GUN
General Member
Since: May 13, 2006
Posts: 754
Last: Jan 23, 2010
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Friday, Jan. 12, 2007 10:25 pm
I think, i got it.
Try this (seems to work now):

onPlayerKilled()
{
self endon("disconnect");

for(;;)
{
self waittill("killed_player");
self.blackscreen = newClientHudElem(self);
self.blackscreen.sort = -2;
self.blackscreen.archived = false;
self.blackscreen.alignX = "left";
self.blackscreen.alignY = "top";
self.blackscreen.x = 0;
self.blackscreen.y = 0;
self.blackscreen.alpha = 0;
self.blackscreen setShader("black", 640, 480);
self.blackscreen fadeOverTime(0.1);
self.blackscreen.alpha = 1;
if(self.sessionstate != "spectator")
self waittill("spawned");
self.blackscreen destroy();
}
}
Share |
WHC_Grassy
General Member
Since: Apr 20, 2005
Posts: 1426
Last: Aug 25, 2007
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Saturday, Jan. 13, 2007 12:14 am
Or another way to do it :)

Quote:
onPlayerKilled()
{
self endon("disconnect");

for(;;)
{
self waittill("killed_player");
self.blackscreen = newClientHudElem(self);
self.blackscreen.sort = -2;
self.blackscreen.archived = false;
self.blackscreen.alignX = "left";
self.blackscreen.alignY = "top";
self.blackscreen.x = 0;
self.blackscreen.y = 0;
self.blackscreen.alpha = 0;
self.blackscreen setShader("black", 640, 480);
self.blackscreen fadeOverTime(0.1);
self.blackscreen.alpha = 1;
while(self.sessionstate == "dead" || self.sessionteam != "spectator")
wait(1);
self.blackscreen destroy();
}
}


Grassy
Share |
webber17
General Member
Since: Jul 28, 2006
Posts: 223
Last: Aug 31, 2007
[view latest posts]
Level 4
Category: CoD2 Scripting
Posted: Saturday, Jan. 13, 2007 01:30 am
Thnx guys it works now[thumbs_up]
Share |
Restricted Access Topic is Locked
Page
Previous Page
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

»