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 → I'm pretty sure this is held in the actor cog...
I'm pretty sure this is held in the actor cog...
2002-10-13, 5:55 AM #1
I've made a character that holds two blasters, one in each hand, and I need it so that when he fires his weapons, two projectiles are shot, but I'm still not cog literate and wouldn't know the first place to look. So if someone could help me with this, I'd really appreciate it.

------------------
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "STROOPER WUZ 'ERE!!!"

[This message has been edited by Stormtrooper (edited October 13, 2002).]
2002-10-13, 8:03 AM #2
Okay, add this to the actor cog.
Code:
In the symbols secion
template    source                           local

template    projecitle=+bryarbolt                local

message     fire

in the code section

Fire:
   source = GetSourceRef();
   Sleep(.1);
   FireProjectile(source, projectile, -1, -1, '-0.05 0.065 0.014', '0 0 0', 0, 0x0, 0, 0);
   Return;

end


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

The Magician Saber System.

[This message has been edited by Descent_pilot (edited October 13, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-10-13, 9:08 AM #3
If I'm not mistaken, that's for a weapon cog, but I'm probably wrong, anyway I guess I didn't mention that this is for an enemy, sorry about not saying that before.

------------------
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "STROOPER WUZ 'ERE!!!"

[This message has been edited by Stormtrooper (edited October 13, 2002).]
2002-10-13, 9:36 AM #4
It is possible, but youll need to do some jimmy-rigging. [http://forums.massassi.net/html/smile.gif]


First, make a new enemy weapon template. It should include nothing but a cog referance. That cog, is one your going to write. In the cog, under Activated, send a message to your enemy's actor cog. In the actor cog, under your user message, add the fireproj code.


Bingo, actor firing 2 projectiles. [http://forums.massassi.net/html/smile.gif]

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-10-13, 10:22 AM #5
Ummmmmm, could I get a little help with that cog, as I have very little cog experience and If i ried, I'dprobably fry my comp.

------------------
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "STROOPER WUZ 'ERE!!!"
2002-10-13, 12:37 PM #6
Or you could just do it my way, that is part of the actor's class cog. SaberMaster showed me that the fired message is called every time a projctile is fired, give it a try. [http://forums.massassi.net/html/wink.gif] No template editing involed.

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

The Magician Saber System.

[This message has been edited by Descent_pilot (edited October 13, 2002).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2002-10-13, 1:47 PM #7
Alright, Descent_pilot, I tried it your way, but now the actor fires from either the left or right gun, but not both at the same time like I wanted, what if I added
"FireProjectile(source, projectile, -1, -1, '0.05 0.065 0.014', '0 0 0', 0, 0x0, 0, 0);" right under the other FireProjectile? would that fix it?

------------------
Last week I cudn't evn spel grajuat, but now I is one.

*Takes out his blaster and fires shots at the wall, the blastmarks leave the words "STROOPER WUZ 'ERE!!!"
2002-10-14, 3:48 AM #8
If you get rid of the sleep, it shall fire them both at the same time (if the projectile is the same as the weapon in the template).

------------------
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!