Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → What is it about Blades of Death?
What is it about Blades of Death?
2002-11-01, 3:06 PM #1
Too many of my problem come only from a certain few levels, including Blades of Death...

For instance, I've got this simple pup cycling cog:

Code:
# Jedi Knight Cog Script
#
# ITEM_KEYYELLOW.COG
#
# Toggles the saber stances
# 
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols

message		activated
message		killed
message		startup

thing		player	local
sound		saberswitch=lvrclik1.wav	local

int	stance	local

end

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

code

startup:

stance = 0;

return;

activated:

if (GetCurWeapon(player) == 10)
{
	if(stance == 0)
	{
		SendTrigger(-1, 18881, player, 0, 0, 0);
		Print("Side Stance"); 
		stance = 1;   
	}
	else
	if(stance == 1)
	{
		SendTrigger(-1, 19991, player, 0, 0, 0);
		Print("Low Stance"); 
		stance = 2;  
	}
	else
	if(stance == 2)
	{
		SendTrigger(-1, 12221, player, 0, 0, 0);
		Print("Forward Stance"); 
		stance = 0;  
	}
	PlaySoundThing(saberswitch, player, 1.0, -1, -1, 0x80);
	SetBinWait(player, 48, 0.5);
}

return;

#---------------------------------------------------

killed:

		SendTrigger(-1, 12221, player, 0, 0, 0);
		stance = 0;  

return;

end


It works in 95% of my levels, the other 5% includes Blades of Death and Drazen.

BoD isn't that big, so it can't be a size thing, but it must have something to do with...I dunno, the complexity of the map...(?)

Anyway, what I'd like is: the answer to this stupid Blades of Death mystery; and if you think I'll need it after that, an explanation on how to make this cog work...in Blades of Death.

Thanks guys,
-TIE

[edit - Oh, right, and I forgot to mention: Those triggers are sent to my patch's client cog, which handles all the triggers in my patch (5, I think). All the other triggers work in every level, it's just the ones from this particular cog.]

[This message has been edited by TIE_14 (edited November 01, 2002).]
2002-11-01, 9:53 PM #2
if it's only the one trigger that doesn't work in those levels, change the trigger number; it's most likely used in those levels.

[edit: oh, no... i just noticed, the cog is item_yellowkey.cog. those both levels use this cog. rename it.]

------------------
Cave_Demon, an ***hole since '86

[This message has been edited by CaveDemon (edited November 02, 2002).]
Last edited by mb; today at 10:55 AM.
2002-11-01, 10:11 PM #3
Alright, I'll try that, but while I'm here: out of curiosity, where does Blades of Death use the yellow key?

And thanks.

-TIE

[edit - it doesn't work as item-keyimperial either...I've used up all my hotkeys, so I need to replace something, and I've already replaced keyblue, keyred, wrench and datadisk and they all work without a hitch]


[This message has been edited by TIE_14 (edited November 02, 2002).]
2002-11-02, 9:03 AM #4
Alright, it didn't work when I gave it a whole new hotkey, either, so...it's not the replacing thing that's a problem. Besides, Hoth Wars 2 uses the blue key, and my blue key replacement works fine in that level...in fact, even the blue key in that level works, essentially, since all you need is posession of it.

So anyway, does anyone else have any ideas?

Thanks again,
-TIE
2002-11-03, 3:34 AM #5
alright. it's the trigger then. change or die.

------------------
Cave_Demon, an ***hole since '86
Last edited by mb; today at 10:55 AM.
2002-11-04, 3:11 PM #6
Assuming you're referring to the ID, I changed it for fear of death, but it still didn't work.

And to think, BoD used to be my favourite level.

-TIE
2002-11-05, 3:46 AM #7
Instead of having the Parameter 1 being the player its sending to, have it be where it's sent to, ie the specific person where it's being sent, since its MP, no need to worry about AI.

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!