English Weapon placing script

10 replies
Goto Page
To the start Previous 1 Next To the start
11.02.11 02:16:55 am
Up
archmage
User
Offline Off
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?
We must secure the existence of our people and a future for white children. 14/88
11.02.11 03:08:14 am
Up
Admir
User
Offline Off
nice script bro, about those images. Did you have try using kill image? m4a1_k.bmp for example.
My curse will sail against the wind and enrage the earth.
11.02.11 03:10:54 am
Up
archmage
User
Offline Off
I would, but I want it to have color to look like the weapon.
We must secure the existence of our people and a future for white children. 14/88
11.02.11 03:44:53 am
Up
were50
User
Offline Off
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...
Look, they are potatos http://img64.imageshack.us/img64/4998/kidzrannoying.png the guy who made it OBVIOUSLY photoshopped in the words cookie and cookies. pssht.
11.02.11 04:13:39 am
Up
archmage
User
Offline Off
I tried every blend mode, but nothing worked
We must secure the existence of our people and a future for white children. 14/88
11.02.11 05:33:02 am
Up
Admir
User
Offline Off
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 >.<
My curse will sail against the wind and enrage the earth.
11.02.11 05:37:09 am
Up
Flacko
User
Offline Off
CS2D's lua images mask color is not magic pink (255,0,255), you have to use black instead (0,0,0)
11.02.11 05:45:14 am
Up
archmage
User
Offline Off
I will just use the kill images.
IMG:http://img23.imageshack.us/img23/4656/cs2d20110210223915.png
We must secure the existence of our people and a future for white children. 14/88
11.02.11 06:29:53 am
Up
Sparty
Reviewer
Offline Off
oo like black ops?
user DC has written:
@user omg: Actually a pretty good idea...
11.02.11 07:14:37 am
Up
archmage
User
Offline Off
I have improved it by adding a menu to select weapons.
Here is a video: http://www.xfire.com/video/40d4b7/

Soon I will release it

Edit
I have uploaded it Download

Edit
I have written a 'telekinesis' script
http://www.xfire.com/video/40e324/
edited 3×, last 12.02.11 01:40:58 am
We must secure the existence of our people and a future for white children. 14/88
21.02.11 05:35:46 am
Up
Heartless Soldier
User
Offline Off
Dark Byte has written:
I have written a 'telekinesis' script
http://www.xfire.com/video/40e324/


Hahahaha epic
To the start Previous 1 Next To the start