I am not too sure how to help ya there. But how about using my cog I use. It used ti support good keys, but i dunno why anymore. But this will do the less gravity thing, but when you die airborn you fall and splat onto the ground. Hope this helps.
# Jedi Knight Cog Script
#
# Fly.COG
#
# INVENTORY SCRIPT - Fly - Flying Mod. Made by Zuk
#
# [CYW & YB]
#
# (C) 2000 Planet Gohan Editing Productions All Rights Reserved
symbols
thing player
int effectHandle=-1
vector thrust local
message activated
message pulse
message killed
int mode local
sound goggleActivate=
sound goggleDeactivate=
end
# ........................................................................................
code
activated:
player = GetSourceRef();
mode = GetSenderRef();
if(GetInv(player, 41))
{
if(IsInvActivated(player, 41) == 0)
{
if(GetInv(player, 13) > 0)
{
// Print("Fly on");
jkPrintUNIString(player, 254);
SetInvActivated(player, 41, 1);
PlaySoundThing(goggleActivate, player, 1.0, -1, -1, 0x80);
SetPulse(.2);
}
else
{
// Print("Outta Power ");
jkPrintUNIString(player, 256);
PlaySoundThing(goggleDeactivate, player, 1.0, -1, -1, 0x80);
}
}
else
{
// Print("Darn, I gotta let go");
SetPhysicsFlags(player, 0x1);
SetInvActivated(player, 41, 0);
if(!ClearPhysicsFlags(player, 0x2000)) DisableIRModes();
PlaySoundThing(goggleDeactivate, player, 1.0, -1, -1, 0x80);
if(effectHandle!=-1) freeColorEffect(effectHandle);
SetPulse(0);
}
}
Return;
# ........................................................................................
pulse:
ChangeInv(player, 13, -5);
if(SetPhysicsFlags(player, 0x2000) != 0)
{
// Print("Fy outta power");
ClearPhysicsFlags(player, 0x1);
SetInvActivated(player, 41, 1);
PlaySoundThing(goggleDeactivate, player, 1.0, -1, -1, 0x80);
if(!IsInvActivated(player, 23)) DisableIRModes();
if(effectHandle!=-1)
freeColorEffect(effectHandle);
SetPulse(0.0);
}
Return;
# ........................................................................................
killed:
player = GetLocalPlayerThing();
if(GetSenderRef() != player) Return;
if(IsInvActivated(player, 41) == 1)
{
SetPulse(0);
SetInvActivated(player, 41, 0);
DisableIRModes();
if(effectHandle!=-1) freeColorEffect(effectHandle);
}
Return;
end
------------------
---"Sometimes...even dying for a good cause is worth it. But chin up...when I do...Wish me back...ok." -Zuk (During the Battle with Vehchsurk)---
The Wild Leader, Founder, and Animator of the Wild West TC!
Planet Gohan - Author of the hit series': Calabro Conversion & Bloodlines.
But also big projects such as the CCTC!