UGX-Mods

Call of Duty 5: World at War => Tutorial Desk => Scripting => Topic started by: death_reaper0 on May 27, 2016, 05:12:47 am

Title: origins styled solo doors
Post by: death_reaper0 on May 27, 2016, 05:12:47 am
basically this makes all buyable doors 250 points cheaper if the player is in solo, like in origins. good for maps with lots of doors or maps that can take a while to reach perks such as juggernog

IMPORTANT!
all door prices you use must have a hintsring set up already so that each door has a hintsting to use in _zombiemode.gsc that is 250 points less than all buyable doors, by default (without custom prices) this should already be set up.

this also only effects doors 500 points and over (otherwise they're too cheap)

first of all find _zombiemode_blockers_new.gsc in root/raw/maps and copy it into your mod
now open it and find
Code Snippet
Plaintext
	cost = 1000;
if( IsDefined( self.zombie_cost ) )
{
cost = self.zombie_cost;
}

and under it place

Code Snippet
Plaintext
 
//origins style door cheapened in solo ~ F3ARxReaper666
flag_wait( "all_players_connected" );
players = get_players();
if(players.size == 1)
if (cost >= 500)
{
cost -=250;
self.zombie_cost = cost;
}

this will have to be done twice (just search them both and place under each)

this should be it, tick it of in mod builder and re-build
Title: Re: origins styled solo doors
Post by: Tim Smith on May 27, 2016, 05:55:23 am
Very good work man :). +1.
Title: Re: origins styled solo doors
Post by: MakeCents on May 27, 2016, 01:00:37 pm
That's cool man. It would be very easy to add an "or player has a perk" too, that would make things cheaper also if someone wanted to.

Spoiler: click to open...
Also, maybe this should go over in tuts, not dls?
Title: Re: origins styled solo doors
Post by: HitmanVere on May 27, 2016, 01:26:10 pm
That's cool man. It would be very easy to add an "or player has a perk" too, that would make things cheaper also if someone wanted to.

Spoiler: click to open...
Also, maybe this should go over in tuts, not dls?

Moved to Scripting Tutorials
Title: Re: origins styled solo doors
Post by: death_reaper0 on May 27, 2016, 09:07:41 pm
That's cool man. It would be very easy to add an "or player has a perk" too, that would make things cheaper also if someone wanted to.

Spoiler: click to open...
Also, maybe this should go over in tuts, not dls?
would be pretty easy to make it a perk, or power-up or even a gamemode setting