I've got some weapon templates I want to test over multi, so I rigged up the client cog, listed it in the items.dat with 0x020 flags and a minimum bin of 1, and launched. It didn't work. I've checked all the cogs over with Parsec, they're bug-free. I set the client cog to print out a message once trigger: is called, and I don't get the text, so I think it's something in the items.dat.
Here's the items.dat line:
here's the client cog:
I've changed a couple other things, like weapon cog names, fire rates, etc., but that stuff shouldn't have any effect on this, should it? Please Help! Thanks.
------------------
Christianity: Don't knock it if you haven't tried it.
Why should the devil have all the good music? www.thousandfootkrutch.com
Here's the items.dat line:
Code:
mpweaps 185 1 1 0x020 cog=00_mpweaps.cog
here's the client cog:
Code:
flags=0x240
symbols
template 9mmpistol=+9mmpistol local
template 45pistol=+45pistol local
template 44magnum=+44magnum local
template 9x18mm=+9x18mm local
template 12gaugeslug=+12gaugeslug local
template 9mmsmg=+9mmsmg local
template 45smg=+45smg local
template 545mm=+545mm local
template 762x51mm=+762x51mm local
template 556mm=+556 local
template 50cal=+50cal local
template 762x54mm=+762x54mm local
template 40grenade=+40grenade local
template 30grenade=+30grenade local
int vector1 local
int vector2 local
int player local
int weaponref local
vector vectornorm local
message trigger
end
# ========================================================================================
code
trigger:
Print("This is to prove that the stupid weapons cog works.");
//Grab the variables
player = GetParam(0);
vector1 = GetParam(1);
vector2 = GetParam(2);
vectornorm = VectorSet(vector1, vector2, 0);
weaponref = GetSourceRef();
//Find out what we shootin', and shoot it!
if(weaponref == 502) //If Glock
{
FireProjectile(player, 9mmpistol, -1, -1, '0.0135 0.1624 0.0', vectornorm, 1.0, 0x20, 0, 0);
}
else if(weaponref == 503) //If mk. 23
{
FireProjectile(player, 45pistol, -1, -1, '0.0135 0.1624 0.0', vectornorm, 1.0, 0x20, 0, 0);
}
else if(weaponref == 512) //If MP5
{
FireProjectile(player, 9mmsmg, -1, -1, '0.0135 0.1624 0.0', vectornorm, 1.0, 0x20, 0, 0);
}
else if(weaponref == 521) //If M16A2
{
FireProjectile(player, 556mm, -1, -1, '0.0135 0.1624 0.0', vectornorm, 1.0, 0x20, 0, 0);
}
else if(weaponref == 540) //If M203
{
FireProjectile(player, 40grenade, -1, -1, '0.0135 0.1624 0.0', vectornorm, 1.0, 0x20, 0, 0);
}
else if(weaponref == 541)
{
FireProjectile(player, 30grenade, -1, -1, '0.0135 0.1624 0.0', vectornorm, 1.0, 0x20, 0, 0);
}
Return;
# ........................................................................................
endI've changed a couple other things, like weapon cog names, fire rates, etc., but that stuff shouldn't have any effect on this, should it? Please Help! Thanks.
------------------
Christianity: Don't knock it if you haven't tried it.
Why should the devil have all the good music? www.thousandfootkrutch.com
Cynic (sin'ik) n. One of a sect of ancient Greek philosophers who held that virtue is the ultimate goal of life, their doctrine gradually coming to symbolize insolent self-righteousness.
Drink So-Be, and play longer!
Drink So-Be, and play longer!

![http://forums.massassi.net/html/frown.gif [http://forums.massassi.net/html/frown.gif]](http://forums.massassi.net/html/frown.gif)
![http://forums.massassi.net/html/smile.gif [http://forums.massassi.net/html/smile.gif]](http://forums.massassi.net/html/smile.gif)
![http://forums.massassi.net/html/biggrin.gif [http://forums.massassi.net/html/biggrin.gif]](http://forums.massassi.net/html/biggrin.gif)