Author Topic: Pickles in my garden  (Read 961 times)

So I have a bunch of pickles and I need help with them.

First, what numbers are for the color orange, I am making a fire grenade/inciderary grenade, I have the code right  but I can't get the right color.

 More to come after this is fixed.

lol my reading sucks today. -_-

For orange try:
Code: [Select]
0.901961 0.341176 0.0784314 1
« Last Edit: March 09, 2008, 06:29:40 PM by Mr Smash »

ok pickle No.2


2.What is line od code and where do I place it to make weapons have damage in minigames only.

Most should already do that, but if you're looking for a special function...
Code: [Select]
function hookshotProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal){
 if(!minigameCanDamage(%obj.client.player,%col))
    return;
 //special function crap, or parent::onCollision for normal shot
}
Should work. Not sure.

Most should already do that, but if you're looking for a special function...
Code: [Select]
function hookshotProjectile::onCollision(%this,%obj,%col,%fade,%pos,%normal){
 if(!minigameCanDamage(%obj.client.player,%col))
    return;
 //special function crap, or parent::onCollision for normal shot
}
Should work. Not sure.

Can't you just use ProjectileData::Damage(%this,%obj,%col,%fade,%pos,%normal)? (Change ProjectileData with the name of yours i.e. bulletProjectile unless it affects all weapons)

Can't you just use ProjectileData::Damage(%this,%obj,%col,%fade,%pos,%normal)? (Change ProjectileData with the name of yours i.e. bulletProjectile unless it affects all weapons)

2.What is line od code and where do I place it to make weapons have damage in minigames only.

Space Guy means that the ProjectileData::onDamage method is only called if the projectile is allowed to do damage, so instead of putting your "make player fall over and roll around" code in the onCollision like you normally would, put it in the onDamage instead. That way it automatically checks if the two people are in a minigame that allows damage.