AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Flying (https://forums.alliedmods.net/showthread.php?t=105859)

hleV 10-09-2009 08:31

Flying
 
It really sucks that MOVETYPE_FLY doesn't work the way MOVETYPE_NOCLIP works, just with collision.

Maybe there's a way to give player noclip but still allow him to collide with stuff?

Exolent[jNr] 10-09-2009 14:19

Re: Flying
 
Code:
#include < amxmodx > #include < engine > public plugin_init( ) {     register_plugin( "Flying", "0.0.1", "Exolent" ); } public client_PreThink( client ) {     if( is_user_alive( client ) ) {         entity_set_float( client, EV_FL_gravity, 0.00001 );         entity_set_int( client, EV_INT_movetype, MOVETYPE_FLY );     } }

SnoW 10-09-2009 15:01

Re: Flying
 
Wouldn't work. The only way is probably set the velocity yourself depending keys pressed.

Exolent[jNr] 10-09-2009 15:11

Re: Flying
 
I forgot about the velocity.
hleV, I wrote a plugin for someone that simulates noclip with this method.
It's either in Scripting Help or Suggestions/Requests.

hleV 10-09-2009 15:45

Re: Flying
 
Quote:

Originally Posted by Exolent[jNr] (Post 956885)
I forgot about the velocity.
hleV, I wrote a plugin for someone that simulates noclip with this method.
It's either in Scripting Help or Suggestions/Requests.

I was aware of that before creating the thread.


All times are GMT -4. The time now is 22:34.

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