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 → Help plz
Help plz
2001-08-30, 12:22 PM #1
This is probably a really simple question that someone can answer easily (hopefully.)

I'm trying to make a level with a startup (?) cog that gives the player only fists/a saber and a concussion rifle with 500 (or infinite if its possible) ammo. Maybe it wouldn't be a startup cog b/c i want it to happen every time the player respawns.

I've tried putting this in the startup cog from jed to see if it works but the commands I put in don't seem to work, if anyone could help it would be appreciated [http://forums.massassi.net/html/smile.gif]

thanks
2001-08-31, 1:12 AM #2
Edit kyle.cog ... It's done in the init_mulit_kyle I believe.

-Raze
--
You are all just jealous because you can't hear the small voices!!
2001-08-31, 4:08 AM #3
thx didn't think I knew how to add/edit cogs but I managed it. Only problem is, i've managed to give players 500 ammo and conc. rifle and set it to mount conc. first. The only problem is the player model stays with fists and everytime i swing i fire conc blasts :/ if i go to fists then back to conc it works fine. Any ideas?
2001-08-31, 6:11 AM #4
Hmm that sounds weird, you could try to add a sleep(1.0); in front of the mounting so the engine can load up and all... or you might want to wait for someone in this forum who's a really good cogger to help you..

-Raze
--
You are all just jealous because you can't hear the small voices!!
2001-08-31, 9:24 AM #5
thx for your help [http://forums.massassi.net/html/smile.gif]

maybe some real good cogger could tell me what i need to edit in kyle.cog? because i am VERY new to this and i'm just kinda dabbling in what i dont know and messin it up. what raze said probably works but i probably did it wrong :/
2001-08-31, 2:12 PM #6
Post the cog.
2001-09-01, 3:15 AM #7
I don't really have a specific cog for it, all i've done is added kyle.cog to my level. Is this the right thing to do? b/c i have never cogged anything before. I just went down to teh bottom to the init_kyle_mult bit and changed some things that i thought would give me the conc and all ammo to start with. Maybe someone could show me the correct way to do it?
2001-09-01, 10:06 AM #8
Replace your init_multi_kyle in kyle.cog with the following code. It will give players a conc, 500 ammo and lets them spawn with the conc in their hands. I've tested it and it works for me. Place the kyle.cog in your level.

init_multi_kyle:

// Set Weapons
SetInv(player, 1, 1.0);
SetInv(player, 2, 1.0);
SetInv(player, 3, 0.0);
SetInv(player, 4, 0.0);
SetInv(player, 5, 0.0);
SetInv(player, 6, 0.0);
SetInv(player, 7, 0.0);
SetInv(player, 8, 0.0);
SetInv(player, 9, 1.0);
SetInv(player, 10, 1.0);


// Set Ammo
SetInv(player, 11, 50.0);
SetInv(player, 12, 500.0);
SetInv(player, 15, 10.0);

// Remove bacta tank and IR goggles
SetInv(player, 40, 0);
SetInv(player, 41, 0);
SetInvAvailable(player, 40, 0);
SetInvAvailable(player, 41, 0);

// Set shields to 100
SetInv(player, 60, 100);

// Do respawn effects
dummy = CreateThingAtPos(teleport_particles, GetThingSector(player), GetThingPos(player), '0 0 0');
dummy = PlaySoundThing(teleportsnd, player, 1.0, -1, -1, 0x180);

SetFireWait(player, -1);
SetMountWait(player, 0);
SetCurInvWeapon(player, 0);
SelectWeapon(player, 9);

Return;
--
You are all just jealous because you can't hear the small voices!!
2001-09-01, 11:19 AM #9
thx so much bro [http://forums.massassi.net/html/smile.gif]

↑ Up to the top!