Page 1 of 1

Cod 1 Mod?

Posted: July 31st, 2009, 12:25 am
by CONKER
Is there a way to make a mod for cod 1 were it looks like you have a mask over your face? Like in cod 4 were you had a night vision mask. Something like that, but were it looks like your wearing a spacesuit. Were you can see the glare off your glass helmet. If you know what I mean and know if there is a way to do it, please tell me.

Re: Cod 1 Mod?

Posted: July 31st, 2009, 12:37 am
by waywaaaard
Well kind of that is possible I think. Night vision isn't, but a mask should be possible.

Create mask in photoshop with alphalayer and then create a new hud element for the player and give it that shader you made in photoshop

here is a testcode for a blackout (cod2) but should work for cod too

Code: Select all

blackout(player)
{
	precacheShader("black");
	precacheShader("codjumper_website");
wait 10;
	// Make the screen black
	player.blackscreen = newHudElem();
	player.blackscreen.sort = -1;
	player.blackscreen.alignX = "left";
	player.blackscreen.alignY = "top";
	player.blackscreen.x = 0;
	player.blackscreen.y = 0;
	player.blackscreen.horzAlign = "fullscreen";
	player.blackscreen.vertAlign = "fullscreen";
	player.blackscreen.foreground = true;

	player.blackscreen.alpha = 1;
	player.blackscreen setShader("codjumper_website", 640, 480);
wait 0.5;
	player.blackscreen.alpha = 0;
wait 0.5;
	player.blackscreen.alpha = 1;
wait 0.5;
	player.blackscreen.alpha = 0;
wait 0.5;
	player.blackscreen.alpha = 1;
wait 0.5;
	player.blackscreen.alpha = 0;
wait 0.5;
player.blackscreen destroy();

}

Re: Cod 1 Mod?

Posted: July 31st, 2009, 1:10 am
by CONKER
Is it possible not using Photoshop, but instead using something like Gimp?

Re: Cod 1 Mod?

Posted: July 31st, 2009, 9:40 am
by Ykarus
U can download a free test Version of Ps here http://www.chip.de/downloads/Adobe-Phot ... 33395.html .

Re: Cod 1 Mod?

Posted: July 31st, 2009, 10:22 am
by waywaaaard
CONKER wrote:Is it possible not using Photoshop, but instead using something like Gimp?
you need a program that can handle dds files

Re: Cod 1 Mod?

Posted: July 31st, 2009, 10:44 am
by JDogg
Ykarus wrote:U can download a free test Version of Ps here http://www.chip.de/downloads/Adobe-Phot ... 33395.html .
Chip.de?, why not just get the trial from Adobe?. By the way Lev, http://registry.gimp.org/node/70, dds plugin for gimp.

Re: Cod 1 Mod?

Posted: July 31st, 2009, 11:07 am
by Ykarus
i just googled so chip.de was the first :oops:


If u dont wanna use the addon to gimp u could also use http://www.dsabstraction.com/dds_converter.htm works fine for me isnt hard to handel and small. I used it for my custom textures.

Re: Cod 1 Mod?

Posted: July 31st, 2009, 3:51 pm
by CONKER
Lev, what is the code you posted supposed to do? because I put it into a .gsc file and played my map but it didn't do anything.

Re: Cod 1 Mod?

Posted: July 31st, 2009, 4:51 pm
by waywaaaard
uhm u need to give it a player and then it should create a hud element
was just an example how u could make such a mod

Re: Cod 1 Mod?

Posted: August 1st, 2009, 1:49 am
by CONKER
I've made the texture, but I don't know how to make it appear on your screen.

Re: Cod 1 Mod?

Posted: August 1st, 2009, 11:19 am
by JDogg
Ykarus wrote:i just googled so chip.de was the first :oops:


If u dont wanna use the addon to gimp u could also use http://www.dsabstraction.com/dds_converter.htm works fine for me isnt hard to handel and small. I used it for my custom textures.
Ah, you gotta be careful, there are some shady websites out there.

Re: Cod 1 Mod?

Posted: August 1st, 2009, 1:07 pm
by waywaaaard
CONKER wrote:I've made the texture, but I don't know how to make it appear on your screen.
that's why I posted the code

precacheShader("yourmaterialname");
then you can use it for and hud element

Re: Cod 1 Mod?

Posted: August 1st, 2009, 6:14 pm
by CONKER
um, I've never done anything like this before so I have no idea if the code is working or not. here's what the code looks like.

Code: Select all

blackout(player)
{
   precacheShader("SpaceHelmet.dds");
   precacheShader("SpaceHelmet.dds");
wait 10;
   // Make the screen black
   player.blackscreen = newHudElem();
   player.blackscreen.sort = -1;
   player.blackscreen.alignX = "left";
   player.blackscreen.alignY = "top";
   player.blackscreen.x = 0;
   player.blackscreen.y = 0;
   player.blackscreen.horzAlign = "fullscreen";
   player.blackscreen.vertAlign = "fullscreen";
   player.blackscreen.foreground = true;

   player.blackscreen.alpha = 1;
   player.blackscreen setShader("SpaceHelmet.dds", 640, 480);
wait 0.5;
   player.blackscreen.alpha = 0;
wait 0.5;
   player.blackscreen.alpha = 1;
wait 0.5;
   player.blackscreen.alpha = 0;
wait 0.5;
   player.blackscreen.alpha = 1;
wait 0.5;
   player.blackscreen.alpha = 0;
wait 0.5;
player.blackscreen destroy();

}
:/

Re: Cod 1 Mod?

Posted: August 1st, 2009, 8:07 pm
by waywaaaard

Code: Select all

blackout(player)
{
   precacheShader("SpaceHelmet.dds");
	wait 0.5;
   player.blackscreen = newHudElem();
   player.blackscreen.sort = -1;
   player.blackscreen.alignX = "left";
   player.blackscreen.alignY = "top";
   player.blackscreen.x = 0;
   player.blackscreen.y = 0;
   player.blackscreen.horzAlign = "fullscreen";
   player.blackscreen.vertAlign = "fullscreen";
   player.blackscreen.foreground = true;

   player.blackscreen.alpha = 1;
   player.blackscreen setShader("SpaceHelmet.dds", 640, 480);

}