Forum

> > CS2D > Scripts > Weapon placing script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Weapon placing script

10 replies
To the start Previous 1 Next To the start

old Weapon placing script

archmage
User Off Offline

Quote
I am writing a script to allow players to spawn weapons on the map.
Here is a video: http://www.xfire.com/video/40d245/

Description:
     You first select a weapon (currently by saying wpn <weapon name> later I will probably use menus instead) move it around with the mouse and click the LMB to place it there.

I need some help with the weapon images. If you have watched the video you will see that it uses default image for that weapon. The problem is that it has a pink background. Is there a way to fix that?

old Re: Weapon placing script

Admir
User Off Offline

Quote
nice script bro, about those images. Did you have try using kill image? m4a1_k.bmp for example.

old Re: Weapon placing script

were50
User Off Offline

Quote
You have to change the weapons blend mode, like you do in the map editor. I don't know lua all that well but I think you can do it in lua...

old Re: Weapon placing script

Admir
User Off Offline

Quote
then, you need make new folder and copy all those weapon images (srsly its for backup), then you need to re-color them 1 by 1 >.<

old Re: Weapon placing script

Flacko
User Off Offline

Quote
CS2D's lua images mask color is not magic pink (255,0,255), you have to use black instead (0,0,0)
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview