UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Picture Puzzle (As seen in the Silent Hills Playable Teaser!)

broken avatar :(
Created 10 years ago
by pashan
0 Members and 1 Guest are viewing this topic.
5,431 views
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 3 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
Signature
×
pashan's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Hey, this is my first script and i was helped by PROxFTW with syntax errors...... So here is what the script does:

Picture Puzzle Example

This is how to implement it in your map.

Open mapname.gsc and find

Code Snippet
Plaintext
maps\_zombiemode::main();

under that put this

Code Snippet
Plaintext
thread picture_puzzle();

at the bottom of you mapname.gsc copy and paste this...

Code Snippet
Plaintext
picture_puzzle()
{
level.paper = 0;

level.pick_pic_one = GetEnt("pick_pic_one", "targetname");
level.pick_pic_two = GetEnt("pick_pic_two", "targetname");
level.pick_pic_three = GetEnt("pick_pic_three", "targetname");
level.pick_pic_four = GetEnt("pick_pic_four", "targetname");



level.pick_pic_one_trigger = GetEnt("pick_pic_one_trigger", "targetname");
level.pick_pic_two_trigger = GetEnt("pick_pic_two_trigger", "targetname");
level.pick_pic_three_trigger = GetEnt("pick_pic_three_trigger", "targetname");
level.pick_pic_four_trigger = GetEnt("pick_pic_four_trigger", "targetname");

level.pick_pic_one_trigger sethintstring("Press &&1 to Pick up the Paper");
level.pick_pic_two_trigger sethintstring("Press &&1 to Pick up the Paper");
level.pick_pic_three_trigger sethintstring("Press &&1 to Pick up the Paper");
level.pick_pic_four_trigger sethintstring("Press &&1 to Pick up the Paper");

level.placed_pic_one = GetEnt("placed_pic_one", "targetname");
level.placed_pic_two = GetEnt("placed_pic_two", "targetname");
level.placed_pic_three = GetEnt("placed_pic_three", "targetname");
level.placed_pic_four = GetEnt("placed_pic_four", "targetname");

level.placed_pic_one hide();
level.placed_pic_two hide();
level.placed_pic_three hide();
level.placed_pic_four hide();

thread pic_one();
thread pic_two();
thread pic_three();
thread pic_four();
thread CheckHas4Paper();
}

pic_one()
{

level.pick_pic_one_trigger waittill ("trigger");
level.pick_pic_one delete();
level.placed_pic_one show();
level.pick_pic_one_trigger delete();
level.paper = level.paper + 1;

}

pic_two()
{

level.pick_pic_two_trigger waittill ("trigger");
level.pick_pic_two delete();
level.placed_pic_two show();
level.pick_pic_two_trigger delete();
level.paper = level.paper + 1;

}

pic_three()
{

level.pick_pic_three_trigger waittill ("trigger");
level.pick_pic_three delete();
level.placed_pic_three show();
level.pick_pic_three_trigger delete();
level.paper = level.paper + 1;

}

pic_four()
{

level.pick_pic_four_trigger waittill ("trigger");
level.pick_pic_four delete();
level.placed_pic_four show();
level.pick_pic_four_trigger delete();
level.paper = level.paper + 1;

}
CheckHas4Paper() //// this block of code was written by PROxFTW /////
{
while( 1 )
{
if(level.paper == 4)
{

wait 3;
for( i = 0; i < GetPlayers().size; i++ )
{
players = GetPlayers()[i];
current_weapon = players GetCurrentWeapon();
weapon_list = players GetWeaponsListPrimaries();
if(isdefined(current_weapon) && weapon_list.size > 1)
{
players TakeWeapon( current_weapon );
}

players GiveWeapon( "ray_gun" );
players SwitchToWeapon( "ray_gun" );
}
break;
}
wait .01;
}
}

Thats it.... now download the attachment and add each prefabs in your map (that part should be strait forward) but if you have questions you can ask me

P.s if i made any n00by mistakes let me know  :)

Last Edit: October 19, 2014, 06:08:25 pm by pashan
broken avatar :(
×
broken avatar :(
Remington R5
Location: gbBarnsley
Date Registered: 18 January 2015
Last active: 3 years ago
Posts
742
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
paypal.me/RT275
Signature
paypal.me/RT275
×
Rorke's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Rorke's Contact & Social Linkshickle.meddowsandrewshaworiginal_rorkewormnation
maybe add in a reward? suck as points or a power up or something?
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
maybe add in a reward? suck as points or a power up or something?

In the script, it shows at the bottom once you get all 4 papers you get a ray gun. Of course, the mapper can change that to give points or whatever they want
broken avatar :(
×
broken avatar :(
Remington R5
Location: gbBarnsley
Date Registered: 18 January 2015
Last active: 3 years ago
Posts
742
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
paypal.me/RT275
×
Rorke's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Rorke's Contact & Social Linkshickle.meddowsandrewshaworiginal_rorkewormnation
never mind just noticed this

players GiveWeapon( "ray_gun" );
            players SwitchToWeapon( "ray_gun" );

i can just change this to a weapon i have :)

+1
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 3 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
have i made any nooby mistake in the script, like i have uneeded stuff and thing?
broken avatar :(
×
broken avatar :(
Location: usMD
Date Registered: 4 October 2013
Last active: 4 years ago
Posts
26
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
bigkittyjr's Groups
bigkittyjr's Contact & Social LinksPM me, its too long
Pashan...... How do I edit the picture?
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 3 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Pashan...... How do I edit the picture?

u just change the texture via raidiant  :P
broken avatar :(
×
broken avatar :(
Location: usNC
Date Registered: 19 August 2014
Last active: 7 years ago
Posts
104
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
OMTGaming
×
OfficialMT22's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
OfficialMT22's Contact & Social LinksOMTGamingOfficialMT22OfficialMT22GamingOMTGaming
this is amazing and i will use in my upcoming map!

 
Loading ...