.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 2 SDK
Half-Life 2 SDK For developments focused around the Half-Life 2 engine Half-Life 2

Reply
 
Thread Tools
SetGravity()
Old
  (#1)
uwnav
Member
 
Status: Offline
Posts: 1
Join Date: Jan 2009
Default SetGravity() - 02-01-2009

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!!
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com