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 → Why won't it give me 10?
Why won't it give me 10?
2004-06-05, 5:40 AM #1
Hi!
I'm editing some COGs for a Modification, and I'm editing pow_drailgun.cog. I change ChangeInv(player, ammobin, 3.0); to ChangeInv(player, ammobin, 10.0);. I go to a level, kill a stormy with a raildet, he drops, and I pick up. I check my ammo, and it has only increased by 3. Why? What am I missing?

/Edward
Edward's Cognative Hazards
2004-06-05, 6:17 AM #2
The stormtrooper didn't drop a drailgun, it seems. Check his cog to see which template he's dropping, then check that template to see which cog is assigned to it.

------------------
Rites of Xanthus

The TC that exacted a terrible toll on my time and eyesight.
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2004-06-05, 7:25 AM #3
It seems OK, but not only that, I went and took a normal railgun from a level and it gave me the default increase in ammo. 6. Please help!

/Edward
Edward's Cognative Hazards
2004-06-05, 10:11 AM #4
Try using SetInv(player, ammobin, GetInv(player, ammobin) + 10);

It's been a very long time since I've cogged, but you get the idea.

------------------
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

-Tazz
-There are easier things in life than finding a good woman, like nailing Jello to a tree, for instance

Tazz
2004-06-05, 10:25 AM #5
Put a print statement too. Maybe for some odd reason JK isn't running your code.

------------------
for(i = 0; i < 00; i = i + 1) Print("massassi is good");
PrintInt(i); //print the integer value of infinity
May the mass times acceleration be with you.
2004-06-05, 10:32 AM #6
HA! I GOT IT!!! I only changed the bin number in "Collect Ammo AND Weapon". Forgot about the Ammo Only! OK! Bye!

/Edward
Edward's Cognative Hazards

↑ Up to the top!