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 → C/S cogs, could someone PLEASE help?
C/S cogs, could someone PLEASE help?
2001-04-01, 8:40 AM #1
this just doesn't work, something is wrong with this cog, but i don't know what...
Right, it's Client cog for weapon #3 (stormy rifle)
Code:
# Jedi Knight Cog Script
#

# Client_strifle.COG
#

# Description

# 

#

# This Cog is Not supported by LucasArts Entertainment Co


# This flag makes the cog act locally, no broadcasting, less lag.

flags=0x404
symbols
flex            autoAimFOV=0                   local
flex            autoAimMaxDist=0                local
template        projectile=+lasama              local
message         trigger
end
# ========================================================================================
code
trigger:

	if( (GetSourceRef() == 40) || (GetSourceRef() == 41) ) 
	{
		FireProjectile(GetParam(0), projectile, -1, -1, '0.0135 0.1624 0.0', '0 0 0', 1, 0x20, autoAimFOV, autoAimFOV*2);
		FireProjectile(GetParam(0), projectile, -1, -1, '-0.0135 0.1624 0.0', '0 0 0', 1, 0x20, autoAimFOV, autoAimFOV*2);
	}	
return;
end


------------------
The death is smiling to all of us,
All what we can do, is smile back.
--
Also, visit my homepage, the Cave

[This message has been edited by Cave_Demon (edited April 01, 2001).]
WHAT?
2001-04-01, 11:43 AM #2
In symbols it is declared at projectilet but in the code you refer to it as projectile.
Capitalization
Commas
Periods
Question Marks
Apostrophes
Confusable Words
Plague Words
2001-04-01, 11:47 AM #3
Looks fine to me. However, I think you should try getting rid of the autoaim stuff since you set their values to 0. Just put two -1's or 0's as the last two parameters in the fireprojectile cog verb instead of the autoaimfov stuff. I think you should change the cog's flags to 0x240 instead of 0x404 because 0x240 is meant to local cogs which this cogging method needs to work. Alos make sure your weapon cog is sending a the trigger 40 or 41 to call your cog (BTW, you don't have to have you triggers like Hideki said you have to in his tutorial. Just having you trigger as "SendTrigger(-1, 40, player, 0, 0, 0); is good enough)

-- SavageX

------------------
"You go to HELL! You go to Hell and you DIE!" - Mr. Garrison, South Park
"Be kind to nerds because one day... one will be your boss."
SavageX's Editing Corner

↑ Up to the top!