Raised This Month: $32 Target: $400
 8% 

Winter Environment


Post New Thread Reply   
 
Thread Tools Display Modes
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-12-2008 , 15:09   Re: Winter Environment
Reply With Quote #11

Like name says, will return the distance between player z axe and end point of z axe. So, if will not find any sky above you will return 0.0
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-12-2008 , 15:42   Re: Winter Environment
Reply With Quote #12

Adding on to what Alka stated, if used in an if() statement:
Code:
if( is_user_outside(client) ) {     // returned the distance to the distance from the player's origin to the sky     // if the player's origin can be traced to the sky without touching anything,     // then a distance will be returned instead of 0, which returns true     // therefore, this block of code would be for if player is not under anything } else {     // there is no distance returned because player is underneath something     // this is because while the origin was traced to the sky, it hit something     // which means player is under something     // therefore, this block of code would be for if player is underneath something }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-13-2008 , 00:14   Re: Winter Environment
Reply With Quote #13

Quote:
Originally Posted by Alka View Post
but was maded in rush...
PHP Code:
    static Float:fGmTime fGmTime get_gametime();
    if(
g_fNextStep[id] < get_gametime()) 
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 11-13-2008 , 07:21   Re: Winter Environment
Reply With Quote #14

yea, thanks.
__________________

anakin_cstrike is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 11-13-2008 , 12:05   Re: Winter Environment
Reply With Quote #15

Oh hai Alka.

Nevermind my comment about the screenies, I should've checked the first post first. Lul.

Looking good
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-13-2008 , 12:05   Re: Winter Environment
Reply With Quote #16

Ok. Plugin update.
-Fixed the way detecting player moving.
-Fixed the get_gametime() thing.
-Some pictures added to first post.

Enjoy. ^^ and thanks for feedback.

EDIT: @PPF - just added them o.O
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 11-13-2008 , 12:46   Re: Winter Environment
Reply With Quote #17

I wanted to do something like this too...sugestion: make the players slide on groun like on ice.
__________________

anakin_cstrike is offline
The Wizard
Member
Join Date: Apr 2006
Old 11-13-2008 , 15:38   Re: Winter Environment
Reply With Quote #18

+k
The Wizard is offline
bbq407
Junior Member
Join Date: Feb 2008
Old 11-14-2008 , 23:30   Re: Winter Environment
Reply With Quote #19

I have saw a bug! If press "shift" to walk ! it have a footstep
bbq407 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-15-2008 , 03:10   Re: Winter Environment
Reply With Quote #20

Yea, i will fix that. But can be a touch of realism too, because how soft you walk on snow, is makig noise.

Hi v3x.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
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 18:25.


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