Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Freeze walking but not looking around?
#1
Is it possible to freeze a player so he cannot walk, but when he's frozen he will be able to turn around, shoot etc?

I tried
Code:
freezeWalk()
{
    self endon( "disconnect" );
    self endon( "death" );
    self endon( "stop_freezing" );
    
    origin = self getOrigin();
    while( !gameflag( "prematch_done" ) )
    {
        self setOrigin( origin );
        wait .05;
    }
    
    self notify( "stop_freezing" );
}

but it sucks because the player will be spacing all over the place
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#2
(06-01-2011, 21:16)iAegle Wrote: Is it possible to freeze a player so he cannot walk, but when he's frozen he will be able to turn around, shoot etc?

cmMOD has this feature before the game starts. I think you can do that by setting running speed to 0.
Reply

#3
setdvar("g_speed","0");
[Image: MaEIQ.png]
Reply

#4
(06-01-2011, 21:24)surtek Wrote:
(06-01-2011, 21:16)iAegle Wrote: Is it possible to freeze a player so he cannot walk, but when he's frozen he will be able to turn around, shoot etc?

cmMOD has this feature before the game starts. I think you can do that by setting running speed to 0.

Thanks works fine ^^

Code:
freezeWalk( thing )
{
    self endon( "disconnect" );
    self endon( "death" );
    self endon( "stop_freezing" );
    
    self setMoveSpeedScale( 0 );
    
    while( !gameflag( "prematch_done" ) )
        wait .05;
        
    self maps\mp\gametypes\_weapons::updateMoveSpeedScale();
    
    self notify( "stop_freezing" );
}
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#5
Code:
for(;;)
{
self setVelocity((0,0,0));
wait 0.05;
}
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#6
(06-01-2011, 21:42)AZUMIKKEL Wrote:
Code:
for(;;)
{
self setVelocity((0,0,0));
wait 0.05;
}

Whats the default velocity? so when prematch is done it resets to default?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#7
(06-01-2011, 21:46)iAegle Wrote:
(06-01-2011, 21:42)AZUMIKKEL Wrote:
Code:
for(;;)
{
self setVelocity((0,0,0));
wait 0.05;
}

Whats the default velocity? so when prematch is done it resets to default?

Velocity changes when you fall move etc..

And it's in a loop so wouldn't it just be manual when you stop the loop?
[Image: MaEIQ.png]
Reply

#8
(06-01-2011, 21:51)Pozzuh Wrote:
(06-01-2011, 21:46)iAegle Wrote:
(06-01-2011, 21:42)AZUMIKKEL Wrote:
Code:
for(;;)
{
self setVelocity((0,0,0));
wait 0.05;
}

Whats the default velocity? so when prematch is done it resets to default?

Velocity changes when you fall move etc..

And it's in a loop so wouldn't it just be manual when you stop the loop?

Dunno if it stops? whatever I got something else working so it doesnt matter.
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#9
setVelocity is like setOrigin, it's a one-time use
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Music unlimited breath scope+sound when walking aim LE3* 0 2,141 04-21-2013, 08:42
Last Post: LE3*
Tongue Help Freeze? Dr3am95 5 3,356 02-11-2013, 07:08
Last Post: SgtLegend
  [Request] mw3 walking ac130 FluffyGrenade 4 3,866 08-13-2012, 06:57
Last Post: hillbilly
  [News] The Walking Dead Videogame Romuald27 3 3,378 07-07-2012, 11:48
Last Post: JoSchaap
  [Request] Freeze Tag mod / plugins sgtnorton 1 2,356 06-29-2012, 17:50
Last Post: pollarpart
  [Request] Freeze Tag killdown 11 7,131 07-20-2011, 14:32
Last Post: Scripts18

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.