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

Time Warping Power Up?

HOT
broken avatar :(
Created 9 years ago
by MJPWGaming
0 Members and 1 Guest are viewing this topic.
5,924 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 3 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
Hi I had this idea where if you got a power up that turned everything black and white (sf_use_bw 1) and reduce the zombies timescale? Not the players just the zombies.
broken avatar :(
×
broken avatar :(
[UGX] Documentation Writer & Programmer
Location: usLos Angeles, CA
Date Registered: 23 August 2013
Last active: 7 months 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.
Community 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
Can't slow down time for a specific entity, you can just slow the zombies down using their run variable.
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 4 days ago
Posts
1,191
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
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.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Could you do what pwn said and slow down the running, walking, grabbing, swiping Anims for the zombies so it looks like slow motion? Not sure if its possible to change the speed of an existing anim, I'm just spitballing here.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 3 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
Can't slow down time for a specific entity, you can just slow the zombies down using their run variable.

That could work, probably even better. I cant write scripts good though (thats why I come here).

Could you do what pwn said and slow down the running, walking, grabbing, swiping Anims for the zombies so it looks like slow motion? Not sure if its possible to change the speed of an existing anim, I'm just spitballing here.

Interesting. Maybe.

Double Post Merge: June 22, 2015, 01:06:55 am
So I waited a good while for a reply but nothing. I followed this tut to where you can speed up your player for a limited time.

http://ugx-mods.com/forum/index.php?topic=296.0

I was thinking you could add in a timescale piece not too sure. Also need to know how to add in the black and white.

Code Snippet
Plaintext
speed( drop_item, player_won )
{
    level notify ("powerup speed");
    level endon ("powerup speed");
    self iPrintLnBold("^7Speed!!!");
    self setmovespeedscale(2.0);
    wait  15;
self iPrintLnBold("^7NO MORE SPEED!");
    self setmovespeedscale(1.0);
}
Last Edit: June 22, 2015, 01:06:55 am by MJPWGaming
broken avatar :(
×
broken avatar :(
Location: au
Date Registered: 23 April 2015
Last active: 3 years ago
Posts
165
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
Signature
Money isn't everything but everything has a price
×
Eternal_Fire's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Eternal_Fire's Contact & Social Links
Dunno about slowing down the zombies but for the black and white thing, i would assume the code should look like this.
Code Snippet
Plaintext
colour_change( drop_item, player_won )
{
    level notify ("powerup colour_change");
    level endon ("powerup colour_change");
    self iPrintLnBold("^7Black And White");
    self SetClientDvars("sf_use_bw", "1");
    wait  15;
self iPrintLnBold("^Normal Colour");
    self SetClientDvars("sf_use_bw", "0");
}

I know that stuffy has a made a script for the nanoswarm grenade from exo zombies which slows them down, so you could ask him
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community 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.
Community 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 LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Code Snippet
Plaintext
	zombie.moveplaybackrate	
zombie.traverseplaybackrate
zombie.animplaybackrate

Are var's you can set on zombies to defined the playbackspeed of their animations.
So default is 1 and if you lower it, the anim will play slower. I added a similar var to melee.gsc to slow down the melee-anims and that's about it..
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community 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.
Community 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 Links[email protected]HarryBo21HarryBo000
also you need to allow for staminup, if you have it
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 27 January 2015
Last active: 7 years ago
Posts
337
Respect
Forum Rank
Perk Hacker
Primary Group
Member
Signature
×
liamsa669's Groups
liamsa669's Contact & Social Links
Hi I had this idea where if you got a power up that turned everything black and white (sf_use_bw 1) and reduce the zombies timescale? Not the players just the zombies.
use the same method as "verruct runners", but instead of rounds, have it check if a variable is set for the powerup, Also export the run animation u want to use and re import it, just change the framerate to be like 15 instead of 30. That would slow the animation down by 2x its normal time
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community 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 LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
use the same method as "verruct runners", but instead of rounds, have it check if a variable is set for the powerup, Also export the run animation u want to use and re import it, just change the framerate to be like 15 instead of 30. That would slow the animation down by 2x its normal time

Like i mentioned a few posts above, you really dont need to do all that just set these var's to 0.5 and the anim will play at half the speed.. set them at 0.01 to basicly freeze the zombies etc etc..
That's all, these var's are in the game by default..


Code Snippet
Plaintext
	zombie.moveplaybackrate	
zombie.traverseplaybackrate
zombie.animplaybackrate

broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 3 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
Like i mentioned a few posts above, you really dont need to do all that just set these var's to 0.5 and the anim will play at half the speed.. set them at 0.01 to basicly freeze the zombies etc etc..
That's all, these var's are in the game by default..


Code Snippet
Plaintext
	zombie.moveplaybackrate	
zombie.traverseplaybackrate
zombie.animplaybackrate


Thanks! I typed it in and got a bad syntax. I probably typed it wrong.

Code Snippet
Plaintext
time_warp( drop_item, player_won )
{
level notify ("warp");
level endon ("warp");
self iPrintLnBold("^7Time Warp!!!");
self setzombie.moveplaybackrate(0.5);
self setzombie.traverseplaybackrate(0.5);
self setzombie.animplaybackrate(0.5);
self SetClientDvars("sf_use_bw", "1");
wait  60;
self iPrintLnBold("^7NO MORE WARP!");
self setzombie.moveplaybackrate(1);
self setzombie.traverseplaybackrate(1);
self setzombie.animplaybackrate(1);
self SetClientDvars("sf_use_bw", "0");
}
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community 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 LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
You need to set it to every zomb seperate. And also new ones that spawn in. You prob want to run something like this in a loop:


Code Snippet
Plaintext
Zombs = getaiarray( "axis" );
For( i=0;i<zombs.size;i++)
{
  If( !isdefined( zombs[i].slowmo ) )
  {
     Zombs[i].slowmo = true;
     Zombs[i] thread slow_me_down();
  }
}

And then to slow them down:
Code Snippet
Plaintext
Slow_me_down()
{
 Self.animplaybackrate = 0.3;
... etc
}

Typed this on my phone so, not tested but to give you an idea..
Last Edit: June 22, 2015, 10:42:21 pm by BluntStuffy
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 3 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
You need to set it to every zomb seperate. And also new ones that spawn in. You prob want to run something like this in a loop:


Code Snippet
Plaintext
Zombs = getaiarray( "axis" );
For( i=0;i<zombs.size;i++)
{
  If( !isdefined( zombs[i].slowmo ) )
  {
     Zombs[i].slowmo = true;
     Zombs[i] thread slow_me_down();
  }
}

And then to slow them down:
Code Snippet
Plaintext
Slow_me_down()
{
 Self.animplaybackrate = 0.3;
... etc
}

Typed this on my phone so, not tested but to give you an idea..

Typed it like this and still bad syntax. Im sorry Im not too good on scripts haha

Code Snippet
Plaintext
time_warp( drop_item, player_won )
{
level notify ("warp");
level endon ("warp");
self iPrintLnBold("^7Time Warp!!!");

zombs = getaiarray( "axis" );
For( i=0;i<zombs.size;i++)
{
If( !isdefined( zombs[i].slowmo ) )
{
zombs[i].slowmo = true;
zombs[i] thread slow_me_down();
}
}
self SetClientDvars("sf_use_bw", "1");
wait  60;
self iPrintLnBold("^7NO MORE WARP!");
{
If( !isdefined( zombs[i].slowmo ) )
{
zombs[i].slowmo = false;
zombs[i] thread slow_me_down();
}
}
self SetClientDvars("sf_use_bw", "0");
}

slow_me_down()
{
self.moveplaybackrate = 0.3;
self.traverseplaybackrate = 0.3;
self.animplaybackrate = 0.3;
}
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community 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 LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
You forgot a for() loop at the end, also you use SetClientDvars but you only set one Dvar so you prob should use SetClientDvar ( without the 's' in the end )
But also when you do it like you did, new zombies that spawn in after you grabbed the drop will still be normal speed, and the "sf_use_bw" needs to
be called on all players in the game, if it's a clientdvar.
So try something like this:

Code Snippet
Plaintext
time_warp()
{
level notify ("warp");
level endon ("warp");
self iPrintLnBold("^7Time Warp!!!");

players = get_players();
for( i=0 ; i<players.size ; i++ )
{
players[i] SetClientDvar("sf_use_bw", "1");
}

time = 60;

while( time > 0 )
{
zombs = getaiarray( "axis" );
for( i=0 ; i<zombs.size ; i++ )
{
If( !isdefined( zombs[i].slowmo ) )
{
zombs[i].slowmo = true;
zombs[i] thread slow_me_down( true );
}
}

wait 0.5;
time-=0.5;
}

self iPrintLnBold("^7NO MORE WARP!");

zombs = getaiarray( "axis" );
for( i=0 ; i<zombs.size ; i++ )
{
zombs[i] thread slow_me_down( false );
}

players = get_players();
for( i=0 ; i<players.size ; i++ )
{
players[i] SetClientDvar("sf_use_bw", "0");
}
}

slow_me_down( slowmo )
{
if( slowmo )
{
self.moveplaybackrate = 0.3;
self.traverseplaybackrate = 0.3;
self.animplaybackrate = 0.3;
}
else
{
self.slowmo = undefined;
self.moveplaybackrate = 1;
self.traverseplaybackrate = 1;
self.animplaybackrate = 1;
}
}
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 26 March 2014
Last active: 3 years ago
Posts
200
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
×
MJPWGaming's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
MJPWGaming's Contact & Social Links
You forgot a for() loop at the end, also you use SetClientDvars but you only set one Dvar so you prob should use SetClientDvar ( without the 's' in the end )
But also when you do it like you did, new zombies that spawn in after you grabbed the drop will still be normal speed, and the "sf_use_bw" needs to
be called on all players in the game, if it's a clientdvar.
So try something like this

I got a bad syntax error from that too :(
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community 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 LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
I got a bad syntax error from that too :(

wtf, i've had this b4 with code that was written on a mobile Phone. Weird..
I just tried and got a bad syntax too. I didn't actually change the script, but i did rewrite it on my pc and now it works for me. When you copy it over, you can see it's the exact same script ??? ???

Code Snippet
Plaintext
time_warp()
{
level notify ("warp");
level endon ("warp");
self iPrintLnBold("^7Time Warp!!!");

players = get_players();
for( i=0 ; i<players.size ; i++ )
{
players[i] SetClientDvar("sf_use_bw", "1");
}

time = 60;

while( time > 0 )
{
zombs = getaiarray( "axis" );
for( i=0 ; i<zombs.size ; i++ )
{
if( !isdefined( zombs[i].slowmo ) )
{
zombs[i].slowmo = true;
zombs[i] thread slow_me_down( true );
}
}

wait 0.5;
time-=0.5;
}

self iPrintLnBold("^7NO MORE WARP!");

zombs = getaiarray( "axis" );
for( i=0 ; i<zombs.size ; i++ )
{
zombs[i] thread slow_me_down( false );
}

players = get_players();
for( i=0 ; i<players.size ; i++ )
{
players[i] SetClientDvar("sf_use_bw", "0");
}
}

slow_me_down( slowmo )
{
if( slowmo )
{
self.moveplaybackrate = 0.3;
self.traverseplaybackrate = 0.3;
self.animplaybackrate = 0.3;
}
else
{
self.slowmo = undefined;
self.moveplaybackrate = 1;
self.traverseplaybackrate = 1;
self.animplaybackrate = 1;
}
}


 
Loading ...