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 → Kyle Deflect
Kyle Deflect
2001-01-27, 6:28 AM #1
I know I have to edit Kyle.cog to do this but I am unsure where to start. I want to make it so that when an enemy fires at kyle and it hits him it deflects right off like a lightsaber. Does anyone have any ideas?
2001-01-27, 10:34 AM #2
perhaps there is a cog for the superhield thing. try and intergrate it with the kyle cog. No idea, at least I replied
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2001-01-27, 11:35 AM #3
You mean, mag-seal the player? There's a flag for that somewhere.. JK Specs has it. It was done in Drazen, if you want a reference.

-Jipe
2001-01-27, 1:08 PM #4
ok, yeah I found the actor flag for it, it's
0x2000, just where do I insert it or replace it in a cog? and Which cog?
2001-01-27, 2:09 PM #5
In the startup of the kyle.cog.

------------------
http://millennium.massassi.net/ - Millennium
2001-01-27, 4:41 PM #6
ok, i keep trying to set it up right but everytime it doesn't work, this is what I have:
code

startup:
player = GetLocalPlayerThing();

if(!IsMulti()) call init_kyle;

// Bubbles
if(IsMulti())
ClearActorFlags(player, 0x2000);
{
SetTimerEx(4 + 5 * rand(), 2, 0, 0);
else
SetTimerEx(2 + 5 * rand(), 2, 0, 0);

Return;


please someone point it out to me what I am doing wrong.

2001-01-27, 10:14 PM #7
Code:
startup:
player = GetLocalPlayerThing();

if(!IsMulti()) call init_kyle;

// Bubbles
if(IsMulti())
{
SetTimerEx(4 + 5 * rand(), 2, 0, 0);
else
SetTimerEx(2 + 5 * rand(), 2, 0, 0);
}

SetActorFlags(player, 0x2000); 

Return;


------------------
http://millennium.massassi.net/ - Millennium
2001-01-28, 4:40 PM #8
Tried the code, it didn't work. I copied it exactly.
2001-01-28, 6:12 PM #9
Code:
startup:

player = GetLocalPlayerThing();

if(!IsMulti()) call init_kyle;
// Bubbles

if(IsMulti()) SetTimerEx(4 + 5 * rand(), 2, 0, 0);
else
SetTimerEx(2 + 5 * rand(), 2, 0, 0);
SetActorFlags(player, 0x2000);
Return;

------------------
http://millennium.massassi.net/ - Millennium

[This message has been edited by Hideki (edited January 28, 2001).]
2001-01-29, 3:56 PM #10
Ok, I am making progress. It blocks but I have to be shot only from the front. Is there a way that where ever I get shot it blocks, like if I get shot in the back it bounces off? Another thing, I can do my self I am just wondering if I would be doing it right. I wanted to get rid of the animation of block so it just bounces off me without the hand block. Do I erase the PovBlockAnimation 0,1 and 2 or the blockAnim 0,1 and 2 or is it something else?
2001-01-29, 7:07 PM #11
There is a flag to make an actor mag-sealed, but will reflect lasers to random direction.
Check jkspec for that flag.

------------------
http://millennium.massassi.net/ - Millennium
2001-01-29, 8:24 PM #12
Guys I think I know what you want. I have a version of mega shield modified to multiplayer levels. It works very well, but haves a bug in single player mode. It doesn't blocks the saber atacks from PC just from MPCs. Hideki I want to talk with you about one patch made by Tecnomant, I modifiing it. But I found some problems with the items bins, if you help me I will be pleased. My UIN is 87276478 please contact me.

↑ Up to the top!