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

image toggle

broken avatar :(
Created 11 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
5,313 views
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
Is there a way to get an image the size of the screen to go on for 30 seconds? And then disapear?
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
When do you want the image to show up and where? whole screen  or on a tv ingame?
Ball bags 2 has something like that but it randomly flashes. Ask him or check the gsc just give ballbags credit.
 if its at the start round you can probably call a hud.(tutorials are around.) That was full screen for 30 seconds and put a wait on round start of 30 seconds.
Post if you need more info.
broken avatar :(
×
broken avatar :(
Location: 0026.969814 16.130676
Date Registered: 9 July 2013
Last active: 11 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Community Scripter
My Groups
More
Personal Quote
i make wins
×
WillyWinkie's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
WillyWinkie's Contact & Social Links
Code Snippet
Plaintext
willywinkie_ballbags_hello()
{
wait 2;
while(1)
{
players = getPlayers();
for(i=0;i<players.size;i++)
players[i] willywinkie_ballbags_screen();
wait(randomIntRange(20,60));
}
}

willywinkie_ballbags_screen()
{
ballbags = create_simple_hud(self);
ballbags.foreground = false;
ballbags.sort = 2;
ballbags.hidewheninmenu = false;
ballbags.horzAlign = "fullscreen";
ballbags.vertAlign = "fullscreen";
ballbags.x = 0;
ballbags.y = 0;
ballbags.alpha = 1;
ballbags.color = (1, 1, 1);
ballbags SetShader("ballbags", 640, 480);
wait 0.15;
ballbags destroy_hud();
}
replace "ballbags' with the image of you're choices.
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
Thank you for helping out willywinkie. To many forum questions with no clear solution. 
broken avatar :(
×
broken avatar :(
Location: 0026.969814 16.130676
Date Registered: 9 July 2013
Last active: 11 years ago
Posts
4
Respect
Forum Rank
Fresh Corpse
Primary Group
Community Scripter
My Groups
More
Personal Quote
i make wins
×
WillyWinkie's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
WillyWinkie's Contact & Social Links
Thank you for helping out willywinkie. To many forum questions with no clear solution.
your welcome i was very joyed to see somebody wanted a feature from my scripting!
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
Quick tutorials (Q&A)  like this will increase the quality of all future maps. 
willywinkie +1
@n123q45
Did you get this to work?
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
Quick tutorials (Q&A)  like this will increase the quality of all future maps. 
willywinkie +1
@n123q45
Did you get this to work?
I will try this later today. Thank you willy
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 1 year ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
this script didnt work willy ,can you help me?
Marked as best answer by Deleted User 10 years ago
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
I think he forgot to add this should be added to your mapname gsc and it should be threaded.

Code Snippet
Plaintext
willywinkie_ballbags_hello()
{
wait 2;
while(1)
{
players = getPlayers();
for(i=0;i<players.size;i++)
players[i] willywinkie_ballbags_screen();
wait(randomIntRange(20,60));
}
}

willywinkie_ballbags_screen()
{
ballbags = create_simple_hud(self);
ballbags.foreground = false;
ballbags.sort = 2;
ballbags.hidewheninmenu = false;
ballbags.horzAlign = "fullscreen";
ballbags.vertAlign = "fullscreen";
ballbags.x = 0;
ballbags.y = 0;
ballbags.alpha = 1;
ballbags.color = (1, 1, 1);
ballbags SetShader("ballbags", 640, 480);
wait 0.15;
ballbags destroy_hud();
}
replace "ballbags' with the image of you're choices.
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 1 year ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
i can see only default image and cant see my image.this script is incomplete because there is same problem in ballbags_2,i mean when play ballbags2 the image not show and only show defualt picture. whats wrong?anyone know how do i can show a pic for custom time?
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
The reason the image does not work in Ballbags 2 is because it was not precached. Probably the same issue for you.

Open your mapname.gsc, scroll down to where you see

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

and right ABOVE that line, put

Code Snippet
Plaintext
PrecacheShader(SHADERNAME);

where SHADERNAME is the name of your newly added material file for the image.

Also make sure you include your material in one of your map's fastfiles:

Code Snippet
Plaintext
material,SHADERNAME

and make sure the iwi image file that goes with the material has been included in the images folder of one of your map's IWDs. Make sure it's box is checked in the IWD files list in Launcher.
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 1 year ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
The reason the image does not work in Ballbags 2 is because it was not precached. Probably the same issue for you.

Open your mapname.gsc, scroll down to where you see

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

and right ABOVE that line, put

Code Snippet
Plaintext
PrecacheShader(SHADERNAME);

where SHADERNAME is the name of your newly added material file for the image.

Also make sure you include your material in one of your map's fastfiles:

Code Snippet
Plaintext
material,SHADERNAME

and make sure the iwi image file that goes with the material has been included in the images folder of one of your map's IWDs. Make sure it's box is checked in the IWD files list in Launcher.

thaks terminator for replying
if you mean i precached my  image name i did it for both (material& precached ) but it doesnt work and still display default image,my image show on one of texture and works fine on my map but cant show on this script.
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
thaks terminator for replying
if you mean i precached my  image name i did it for both (material& precached ) but it doesnt work and still display default image,my image show on one of texture and works fine on my map but cant show on this script.
If you do everything I just said and the material exists then it will work, I guarantee it. You're missing something.
broken avatar :(
×
broken avatar :(
Location: 00persia
Date Registered: 20 December 2012
Last active: 1 year ago
Posts
66
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
nikfar1's Groups
nikfar1's Contact & Social Links
If you do everything I just said and the material exists then it will work, I guarantee it. You're missing something.
ok thanks again for fast reply,
i ll do it from begun ;)

Post Merge: October 01, 2013, 04:36:30 pm
Quote from: link=topic=1067.msg11576#msg11576 date=1380561826


how do run this script by trigger ?


i changed  script like this but didnt show pic

Code Snippet
Plaintext
willywinkie_ballbags_hello()
{
  trig_pic = getEnt("pic_trig", "targetname"); 
  trig_pic SetCursorHint( "HINT_NOICON" );
  trig_pic UseTriggerRequireLookAt();
  trig_pic sethintstring("Press &&1 to see picture.");
  // wait 2;
while(1)
{
players = getPlayers();
for(i=0;i<players.size;i++)
trig_pic waittill( "trigger", players);
playsoundatposition ("circuit", trig_pic.origin);
players[i] willywinkie_ballbags_screen();
//trig_pic delete();
// wait(randomIntRange(20,60));
}
}

willywinkie_ballbags_screen()
{
ballbags = create_simple_hud(self);
ballbags.foreground = false;
ballbags.sort = 2;
ballbags.hidewheninmenu = false;
ballbags.horzAlign = "fullscreen";
ballbags.vertAlign = "fullscreen";
ballbags.x = 0;
ballbags.y = 0;
ballbags.alpha = 1;
ballbags.color = (1, 1, 1);
ballbags SetShader("z_woman_shader", 640, 480);
wait 4;
ballbags destroy_hud();
}
[code]
Last Edit: October 01, 2013, 04:45:58 pm by nikfar1

 
Loading ...