.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 2 SDK (http://forums.bots-united.com/forumdisplay.php?f=62)
-   -   SetGravity() (http://forums.bots-united.com/showthread.php?t=7003)

uwnav 02-01-2009 03:44

SetGravity()
 
Trying to make a mod, where I have a flying character. But I need everything else to have regular gravity.
I tried in \src\dlls\GameInterface.cpp

Code:

void CServerGameClients::ClientActive( edict_t *pEdict, bool bLoadGame )
{
  ...
  pPlayer->SetGravity(0.0f);
}

it does a whole lot of nothing. my character still has regular gravity set on them. Is there a way I can set it's weight to 0, or setGravity on it to 0! *&$(@*#&(
Help please!! :surrender:


All times are GMT +2. The time now is 13:06.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.