Raised This Month: $ Target: $400
 0% 

How to freeze a common infected and witch?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chu1720
Senior Member
Join Date: Mar 2010
Location: Hong Kong
Old 11-13-2010 , 13:04   How to freeze a common infected and witch?
Reply With Quote #1

I am writing a rpg plugin that have a skill called Ice Ball, that skill can freeze any infected.
I can freeze a playable class of infected, but i can freeze a common infected or witch, anyone can help?
chu1720 is offline
Send a message via MSN to chu1720
chu1720
Senior Member
Join Date: Mar 2010
Location: Hong Kong
Old 11-15-2010 , 05:22   Re: How to freeze a common infected and witch?
Reply With Quote #2

If we cant freeze them, can i just slow them down?
chu1720 is offline
Send a message via MSN to chu1720
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-15-2010 , 05:51   Re: How to freeze a common infected and witch?
Reply With Quote #3

Use netprop "m_flLaggedMovementValue", it should allow you to slow them down a lot.

Note they will also FALL in slow motion which may or may not look really weird
AtomicStryker is offline
chu1720
Senior Member
Join Date: Mar 2010
Location: Hong Kong
Old 11-16-2010 , 05:16   Re: How to freeze a common infected and witch?
Reply With Quote #4

Quote:
Originally Posted by AtomicStryker View Post
Use netprop "m_flLaggedMovementValue", it should allow you to slow them down a lot.

Note they will also FALL in slow motion which may or may not look really weird
oh! I dont know that "m_flLaggedMovementValue" can be used in common infected and witch!
Thx~
chu1720 is offline
Send a message via MSN to chu1720
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-16-2010 , 12:48   Re: How to freeze a common infected and witch?
Reply With Quote #5

I can only say for sure they have that, it may not work after all
AtomicStryker is offline
chu1720
Senior Member
Join Date: Mar 2010
Location: Hong Kong
Old 11-18-2010 , 07:01   Re: How to freeze a common infected and witch?
Reply With Quote #6

Quote:
Originally Posted by AtomicStryker View Post
I can only say for sure they have that, it may not work after all
"m_flLaggedMovementValue" can not be used for non-player...
PHP Code:
L 11/18/2010 19:41:02: [SMNative "SetEntPropFloat" reportedProperty "m_flLaggedMovementValue" not found (entity 166/infected)
L 11/18/2010 19:41:02: [SMDisplaying call stack trace for plugin "UnitedRPG_V2.4beta2_CHT.smx":
L 11/18/2010 19:41:02: [SM]   [0]  Line 7616UnitedRPG_V2.4beta2_CHT.sp::FreezePlayer()
L 11/18/2010 19:41:02: [SM]   [1]  Line 7565UnitedRPG_V2.4beta2_CHT.sp::UpdateIceBall() 
chu1720 is offline
Send a message via MSN to chu1720
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 11-18-2010 , 17:05   Re: How to freeze a common infected and witch?
Reply With Quote #7

PHP Code:
Try:
SetEntityMoveType(entityMOVETYPE_NONE); // this to freeze them.
SetEntityMoveType(entityMOVETYPE_STEP); // this to unfreeze them. can't guarantee this one works. 
Then for effect you can color them blue to signify if they're frozen.
__________________

Last edited by McFlurry; 11-18-2010 at 17:13.
McFlurry is offline
Send a message via Skype™ to McFlurry
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-18-2010 , 17:51   Re: How to freeze a common infected and witch?
Reply With Quote #8

Its MOVETYPE_WALK unless im having a brain fart
AtomicStryker is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 11-18-2010 , 21:18   Re: How to freeze a common infected and witch?
Reply With Quote #9

MOVETYPE_WALK Player only - moving on the ground
I assume it means clients only.
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
chu1720
Senior Member
Join Date: Mar 2010
Location: Hong Kong
Old 11-18-2010 , 23:06   Re: How to freeze a common infected and witch?
Reply With Quote #10

Quote:
Originally Posted by McFlurry View Post
MOVETYPE_WALK Player only - moving on the ground
I assume it means clients only.
SetEntityMoveType(entity, MOVETYPE_NONE)
I heard that using this one will make them undestructible. Is that true?

Last edited by chu1720; 11-18-2010 at 23:11.
chu1720 is offline
Send a message via MSN to chu1720
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode