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

Need a scripter, who script a little EE :D

broken avatar :(
Created 11 years ago
by MrDunlop4
0 Members and 1 Guest are viewing this topic.
3,500 views
broken avatar :(
×
broken avatar :(
Face to Face
Location: chSomwhere
Date Registered: 6 October 2013
Last active: 3 years ago
Posts
947
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
Signature
Maya <3

Let's Play some osu!
×
MrDunlop4's Groups
MrDunlop4's Contact & Social LinksMrDunlop4Nelielexy0Nelielexy0Nelielexy0Nelielexy0CSNelieley
Hey Guys

Is there any Scripter, who want make for me a little EE?

Thanks :)

MrDunlop4
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 8 October 2013
Last active: 9 years ago
Posts
14
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
hedler_koch's Groups
hedler_koch's Contact & Social Links
That little Easter Egg do you need?
I can write it for you please send me a reply ;)
broken avatar :(
×
broken avatar :(
Face to Face
Location: chSomwhere
Date Registered: 6 October 2013
Last active: 3 years ago
Posts
947
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
MrDunlop4's Groups
MrDunlop4's Contact & Social LinksMrDunlop4Nelielexy0Nelielexy0Nelielexy0Nelielexy0CSNelieley
That little Easter Egg do you need?
I can write it for you please send me a reply ;)

Thanks :)

So i have planned, at round 20 there spawns around the map 3 teddybear, the players shoot them all 3 teddybears and they go away and there spawn another teddybear and then you can go to them and pay 20`000 to end the game.

Can you do this?

PS: sogar ein deutscher :D

MrDunlop4
Marked as best answer by MrDunlop4 11 years ago
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
Signature
Do not take life too seriously. You will never get out of it alive.
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
That's easy though.

Writing code....

Code Snippet
Plaintext
// ==========================================================
// Coding Projects
//
// Component: WaW
// Purpose: End Game easteregg using no triggers, but by entities.
//
// Initial author: DidUknowiPwn
// Started: 2015-01-06
// © 2015 DidUknowiPwn™
// ==========================================================

#include maps\_utility;
#include common_scriptsutility;
#include maps\_zombiemode_utility;

init()
{
level thread endgame_ee_init();
}

endgame_ee_init()
{
//if called from wrong place level.round_number is considered undefined, so just gonna put this here.
if(!IsDefined(level.round_number))
level.round_number = 0;
//level var to increment/check against
level.teddy_bear_hit = 0;
//grab our main teddy, the end game teddy and hide/disable it.
main_teddy = GetEnt("main_teddy_bear_ee", "targetname");
main_teddy Hide();
main_teddy trigger_off();
//grab the 3 teddies and hide & disable them until round 20 as well.
teddy_loc = GetEntArray("teddy_bear_ee", "targetname");
for(i = 0; i < teddy_loc.size; i++)
{
teddy_loc[i] Hide();
teddy_loc[i] trigger_off();
}
//wait until round 20 reaches in order to start the teddy logics.
while(level.round_number < 20)
level waittill("between_round_over");
array_thread( teddy_loc, ::endgame_ee_logic );
}

endgame_ee_logic()
{
//make ourselves visible and enable our trigger
self Show();
self trigger_on();
//make it a damagable ent then grab a damage notify, disable it, and then hide it.
self SetCanDamage( true );
self waittill("damage");
self SetCanDamage( false );
self Hide();
//increment teddy_bear_hit, necessary for below
level.teddy_bear_hit++;
//if we didn't hit at least 3 bears yet, exit the func here.
//if we did that means all 3 were hit and now we can do the final bear logic.
if(level.teddy_bear_hit < 3)
return;
else
level thread endgame_ee_final_logic();
}

endgame_ee_final_logic()
{
//some ranom sound I found.
play_sound_2D( "bright_sting" );
//grab main bear, make it visible and turn on its trigger
main_teddy = GetEnt("main_teddy_bear_ee", "targetname");
main_teddy Show();
main_teddy trigger_on();
wait 0.05;
//create scoped var for cost
end_game_cost = 20000;
//give it its hint string stuff.
main_teddy.trigger = Spawn("trigger_radius", main_teddy.origin, 9, 80, 64);
main_teddy.trigger SetCursorHint("HINT_NOICON");
main_teddy.trigger UseTriggerRequireLookAt();
main_teddy.trigger SetHintString("Press ^3&&1^7 to end the game [Cost: ^3" + end_game_cost + "^7]");
while( true )
{
main_teddy.trigger waittill("trigger", player);
//don't recall if UseButtonPressed condition is needed here, give it a try anyway if it acts funky remove it and see what happens
//anyway you know what goes on here.
if( is_player_valid(player) && player UseButtonPressed() && player.score >= end_game_cost )
{
player maps\_zombiemode_score::minus_to_player_score( end_game_cost );
//if you're using the ugx mod then use this
//level notify("end_game");
//if not don't uncomment this
maps\_zombiemode::end_game();
break;
}

}
}
Last Edit: January 08, 2015, 09:16:50 pm by DidUknowiPwn
broken avatar :(
×
broken avatar :(
Face to Face
Location: chSomwhere
Date Registered: 6 October 2013
Last active: 3 years ago
Posts
947
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
MrDunlop4's Groups
MrDunlop4's Contact & Social LinksMrDunlop4Nelielexy0Nelielexy0Nelielexy0Nelielexy0CSNelieley
That's easy though.

Writing code....

Code Snippet
Plaintext
// ==========================================================
// Coding Projects
//
// Component: WaW
// Purpose: End Game easteregg using no triggers, but by entities.
//
// Initial author: DidUknowiPwn
// Started: 2015-01-06
// © 2015 DidUknowiPwn™
// ==========================================================

#include maps\_utility;
#include common_scriptsutility;
#include maps\_zombiemode_utility;

init()
{
level thread endgame_ee_init();
}

endgame_ee_init()
{
//if called from wrong place level.round_number is considered undefined, so just gonna put this here.
if(!IsDefined(level.round_number))
level.round_number = 0;
//level var to increment/check against
level.teddy_bear_hit = 0;;
//grab our main teddy, the end game teddy and hide/disable it.
main_teddy = GetEnt("main_teddy_bear_ee", "targetname");
main_teddy Hide();
main_teddy trigger_off();
//wait until round 20 reaches in order to start the teddy logics.
while(level.round_numer < 20 )
level waittill("between_round_over");

teddy_loc = GetEntArray("teddy_bear_ee", "targetname");
array_thread( teddy_loc, ::endgame_ee_logic );
}

endgame_ee_logic()
{
//make it a damagable ent then grab a damage notify, disable it, and then hide it.
self SetCanDamage( true );
self waittill("damage");
self SetCanDamage( false );
self Hide();
//increment teddy_bear_hit, necessary for below
level.teddy_bear_hit++;
//if we didn't hit at least 3 bears yet, exit the func here.
//if we did that means all 3 were hit and now we can do the final bear logic.
if(level.teddy_bear_hit < 3)
return;
else
level thread endgame_ee_final_logic();
}

endgame_ee_final_logic()
{
//some ranom sound I found.
play_sound_2D( "bright_sting" );
//grab main bear, make it visible and turn on its trigger
main_teddy = GetEnt("main_teddy_bear_ee", "targetname");
main_teddy Show();
main_teddy trigger_on();
waittillframeend;
Earthquake( 1, 3, main_teddy.origin, 500 );//have a small earthquake? idk your call.
waittillframeend;
//create scoped var for cost
end_game_cost = 20000;
//give it its hint string stuff.
main_teddy SetCursorHint("HINT_NOICON");
main_teddy UseTriggerRequireLookAt();
main_teddy SetHintString("Press ^3&&1^7 to end the game [Cost: ^3" + end_game_cost + "^7]");
while( true )
{
main_teddy waittill("trigger", player);
//don't recall if UseButtonPressed condition is needed here, give it a try anyway if it acts funky remove it and see what happens
//anyway you know what goes on here.
if( is_player_valid(player) && player UseButtonPressed() && player.score >= end_game_cost )
{
player maps\_zombiemode_score::minus_to_player_score( end_game_cost );
//if you're using the ugx mod then use this and delete the end_game func below
//level notify("end_game");
//if not don't comment this out
maps\_zombiemode::end_game();
break;
}

}
}

WOW :O

Thx but how i add these teddybears to my map?

PS: THX Pwn :D


MrDunlop4
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
from a glance

add the models to your map, and give them the KVP

 "targetname" - "main_teddy_bear_ee"
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
that's the last one, also there's these:

Code Snippet
Plaintext
teddy_loc = GetEntArray("teddy_bear_ee", "targetname");

wich should be the first three.




This is pretty usefull, never knew that existed. Does that work on any script-model?

Code Snippet
Plaintext
SetCanDamage()
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 3 years ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
(ง º ω º )ง u wont sum m8y?
×
DidUknowiPwn's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
that's the last one, also there's these:

Code Snippet
Plaintext
teddy_loc = GetEntArray("teddy_bear_ee", "targetname");

wich should be the first three.




This is pretty usefull, never knew that existed. Does that work on any script-model?

Code Snippet
Plaintext
SetCanDamage()
Pretty sure yeah, used it a lot in MW2 modding and it works the same way on here.

 
Loading ...