as for the first one, in the weapon cog, search for something like:
ChangeInv(player, 11, -1.0);
and change it to
ChangeInv(player, 14, -cost);
cost being the amount of mana you want the weapon to draw per shot
for the second,
# Jedi Knight Cog Script
#
# POW_SUPERSHIELD.COG
#
# POWERUP Script - SuperShield
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
#
# Edited to invisibility from incinvibility.
symbols
thing powerup local
thing player local
sound pickupsnd=helthpu1.wav local
sound outsnd=SCAlarm.wav local
sound respawnsnd=Activate01.wav local
message touched
message taken
message timer
message respawn
message newplayer
end
#............
code
touched:
player = GetSourceRef();
powerup = GetSenderRef();
TakeItem(powerup, player);
Return;
# ........................................................................................
taken:
player = GetSourceRef();
powerup = GetSenderRef();
// Print("SuperShield");
Print("Supadupa invis item");
// Do effects.
PlaySoundThing(pickupsnd, powerup, 1.0, -1, -1, 0);
AddDynamicTint(player, 0.0, 0.0, 0.2);
SetThingCurGeoMode(player, 0);
// Effect lasts 30 seconds, expand if already on.
KillTimerEx(1);
SetTimerEx(30, 1, player, 1);
SetTimerEx(30 - 3 * GetSoundLen(outsnd) - 0.5, 1, player, 0);
Return;
# ........................................................................................
timer:
if(GetParam(1) == 0)
{
// Power will end soon...
PlaySoundLocal(outsnd, 1.0, 0.0, 0);
Sleep(GetSoundLen(outsnd) + 0.25);
PlaySoundLocal(outsnd, 1.0, 0.0, 0);
Sleep(GetSoundLen(outsnd) + 0.25);
PlaySoundLocal(outsnd, 1.0, 0.0, 0);
}
else
{
SetThingCurGeoMode(GetParam(0), 1);
}
Return;
# ........................................................................................
respawn:
powerup = GetSenderRef();
PlaySoundThing(respawnsnd, powerup, 0.6, 5.0, 10.0, 0);
Return;
# ........................................................................................
newplayer:
player = GetSenderRef();
if(GetLocalplayerthing() == player)
{
KillTimerEx(1);
SetThingCurGeoMode(GetParam(0), 1);
}
Return;
end
this should work.. if I haven't erased something important...
-Raze
[This message has been edited by Raze (edited August 27, 2001).]
--
You are all just jealous because you can't hear the small voices!!