lfnetwork.com mark read register faq members calendar

Thread: Help with a cog
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 05-05-2002, 07:32 PM   #1
XxWinnaRxX
 
Join Date: Apr 2002
Posts: 23
Help with a cog

I've posted this at Massassi, but nobody seems to care about JK much anymore. It takes two or three forums to get the same effect as one.

Anyway, I'm making a really spiffy JK mod. Force Well handles wall runs. This cog will not work. Hell Raiser of the TDiR team couldn't figure out why it wouldn't work either, I hope it's something totally easy to fix.

-------------------------------

# Jedi Knight Cog Script
#
# FORCE_WELL.COG
#
# JEDI RANK Script
# Bin 20
#
# The rank of a Jedi determines his mana regeneration rate.
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved


symbols

thing player local

int limit

message startup
message pulse

end

# ================================================== ======================================

code

startup:
player = GetLocalPlayerThing();
Sleep(1.0);
SetPulse(0.001);
Limit = 0.5;
pthrust = getthingthrust(player);

Return;

# .................................................. ......................................

pulse:
// don't do anything if the player is currently dead
if(GetThingHealth(player) < 1) Return;

if(vectorX(pthrust) > limit || vectorY(pthrust) > limit || vectorZ(pthrust) > limit)
{
setphysicsflags(player, 0xD0);
}
else
if(vectorX(pthrust) < limit || vectory(pthrust) < limit || vectorz(pthrust) < limit)
{
Clearphysicsflags(player, 0x90);
}

Return;

end


-----------------------

SetPhysicsFlags(player, 0xd0) = Walking on walls on.
Clearphysicsflags(player, 0x90) = walking on walls off.

I know that the limit int is a little too low, but that's for testing, provided I ever get the thing to work. -_-

Help is greatly appreciated.


"Lobbest Thou Thine Holy Hand Grenade of Antioch!" -God
XxWinnaRxX is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Game Discussion > Jedi Knight / MotS > Help with a cog

Thread Tools
Display Modes

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


All times are GMT -4. The time now is 09:26 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.