Printing end to map

Have questions about CoD2 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Saint
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: August 2nd, 2009, 2:16 pm

Printing end to map

Post by Saint » August 13th, 2009, 4:21 pm

I would need something like this: user iprintlnbold ("^3C^9ongratulation^3, N^9ice ^3j^9ob^3, m^9an^3! ^3"); to print to the center of the screen when someone ends the map but i want to make it visible to everyone not just the one who ends. How is it possible, pls help me :roll: :wink:

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Re: Printing end to map

Post by Nightmare » August 13th, 2009, 4:55 pm

...

Or:

Code: Select all

finished_map()
{
	trigger = getent("endtrigger","targetname");
  	while (1)
	{
		trigger waittill("trigger",user);
		iprintlnbold("^3C^9ongratulation^3, N^9ice ^3j^9ob^3, m^9an^3! ^3");
		wait 3;
	}
}
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

User avatar
Nightmare
Core Staff
Core Staff
Posts: 2688
Joined: January 12th, 2006, 10:09 pm
Contact:

Re: Printing end to map

Post by Nightmare » August 13th, 2009, 5:15 pm

If you only want it once.

Code: Select all

finished_map()
{
	trigger = getent("endtrigger","targetname");
	while (1)
	{
		trigger waittill("trigger",user);
		if(!isDefined(user.finished))
			iprintlnbold("^3C^9ongratulation^3, N^9ice ^3j^9ob^3, m^9an^3! ^3");
		user.finished = true;
		wait 1;
	}
}
Coding is Poetry. Mapping is Art.
"Cause im the sexiest mapper ever...except for nm, that sexy man" - Soviet

-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

Saint
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: August 2nd, 2009, 2:16 pm

Re: Printing end to map

Post by Saint » August 13th, 2009, 5:24 pm

Thanks i'll try

Saint
CJ Wannabe
CJ Wannabe
Posts: 5
Joined: August 2nd, 2009, 2:16 pm

Re: Printing end to map

Post by Saint » August 16th, 2009, 8:16 pm

On those maps where is no "end" text, no congratulations or anything, how it is possible to print such?

User avatar
Ykarus
CJ Fan
CJ Fan
Posts: 133
Joined: May 14th, 2008, 7:49 pm
Location: Germany
Contact:

Re: Printing end to map

Post by Ykarus » August 16th, 2009, 8:19 pm

If u want to add that to a map u need the .map file. If u got this u can add a trigger or whatever u want and write the script into the .gsc file. But u need the .map file maybe ask the mapper if he gives it to you.

I hope i didnt missunderstand cause im not sure if this is what u wanna hear :P
Image

I think my Radiant hates me -.-


.|GeR|'> Ykarus: again i cant jump ypur map ...
'Pnin. Designsâ„¢: ship tappens ^^
.|GeR|'> Ykarus: ship tappens...


-=[CoDJumper.com Movies]=-
[Ambush] || [Backlot] || [Bloc] || [Bog] || [Broadcast] || [Chinatown] || [Countdown]
[Crash] || [Creek] || [Crossfire] || [District] || [Downpour] || [Killhouse] || [Overgrown]
[Pipeline] || [Shipment & Wetwork] || [Showdown] || [Strike] || [Vacant]

User avatar
MasterThomy
CJ Wannabe
CJ Wannabe
Posts: 42
Joined: December 23rd, 2008, 5:14 pm

Re: Printing end to map

Post by MasterThomy » August 17th, 2009, 2:04 am

I've done that, almost a year ago now... :D (for CoD2)
Ex CoD2 mapper/modder.

User avatar
waywaaaard
Core Staff
Core Staff
Posts: 2214
Joined: February 6th, 2006, 3:18 pm
Location: Germany/Bayern

Re: Printing end to map

Post by waywaaaard » August 17th, 2009, 11:26 am

why so complicated you can spawn a trigger at coordinates and voila via mod you have that - As far I remember projumpers mod uses this for their records etc
THAT HANDS WERE NOT TRACED!
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality :roll:

User avatar
MasterThomy
CJ Wannabe
CJ Wannabe
Posts: 42
Joined: December 23rd, 2008, 5:14 pm

Re: Printing end to map

Post by MasterThomy » August 17th, 2009, 6:58 pm

Nah, it works just like Killersam said :) - It's more precise IMO...
Ex CoD2 mapper/modder.

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests