Author Topic: Bug Spray-- need some help on it.  (Read 1288 times)

After 43 messages in the issue thread over at RTB, Space Guy failed it. D:
So he asked me to ask for help in blockland.us/
Ok so, my weapon, Bug Spray, Is needing of some parts.
Here's whats inside:

blank.png
server.cs
spraycan.dts
CI_bugkill.png
icon_bugspray.png
spraycanLabel.png
whitecheck.png
description.txt
rtbInfo.txt
namecheck.txt/

Space is saying that I should add the animation parts. To do so, he says, you must look in the fill can. But, nowhere in the fill can can Can can can you do the can can? :D I find it.
Also, the icons need to be fixed. So can anyone be so nice and help me with it?
Also, do not release this to the public/add-ons section/anywhere else.

One last thing, the spraycan.dts is the original spray can. Also, in the script, don't mess with spray can label because I made a custom one just for this. Just a fyi.



This will fix your animation problem and make it so it only damages bugs. Delete everything in your script below "//Weapon image//" and paste this in. I'm not sure why your item's icon isn't working, though.
Code: [Select]
datablock ShapeBaseImageData(bugsprayImage : color0sprayCanImage)
{
shapeFile = "./spraycan.dts";
correctMuzzleVector = true;
className = "WeaponImage";
item = bugsprayItem;
projectile = bugsprayProjectile;
projectileType = Projectile;
melee = false;
armReady = true;
doColorShift = true;
colorShiftColor = "1 1 1 1";
stateEmitter[2] = bugsprayEmitter;
};
function bugSprayProjectile::damage(%this, %obj, %col, %fade, %pos, %normal)
{
if(%col.zteam !$= "Bugs")
{
return;
}
parent::damage(%this, %obj, %col, %fade, %pos, %normal);
}

Delete everything under weapon image?

Unless you put something there other than the image itself, yes.

Cax already made a bug-spray...?  :cookie: :cookie:
He just didnt release it...  :cookie:
You could ask him to release, as a private-mod  :cookieMonster:

Cax already made a bug-spray...?  :cookie: :cookie:
He just didnt release it...  :cookie:
You could ask him to release, as a private-mod  :cookieMonster:
Thank you so much for your helpful post. I'm sure Niven must have his add-on perfect thanks to what you posted here. You should come here more often.

Thank you so much for your helpful post. I'm sure Niven must have his add-on perfect thanks to what you posted here. You should come here more often.
:D

Offtopic: I ported it

Ontopic: Always wanted a spray weapon