English [EngiN33R] Custom Weapons icon

140 comments
04.07.12 05:05:47 pm
like 75 like it!
155 kb, 1,269 Downloads
EngiN33R
Moderator
Offline Off
Finally, I'm uploading the long-awaited (or not so much so now) script that is the custom weapons mod!

This modification allows you to add your very own weapons to the game. Naturally, owing to CS2D's limitations, it doesn't simulate real weapons to the fullest extent, but it's the first step toward that, and dare I say, quite a big one. Hopefully now all the whiners will stop whining as much.

Console commands >


To-do list:
flame Make custom weapons hurt buildings
flame Implement support for projectile-based custom weapons
flame Implement support for melee custom weapons
• Remove the bufferimg workaround and do the bloody thing properly

If you have the need to edit the script, the code is commented in the most part; if you do not understand something - let me know in PM. If you have, for some reason, the intention to upload your modified script - I do not prohibit that, just be so kind as to mention what you based your edit on.

This is, of course, a beta version, and its features are quite limited. I will continue developing it further, the next thing to do is to add projectile-based custom weapon functionality. Please do leave feedback and report bugs if such are found.

EDIT: My apologies, I've now uploaded the missing files. The archive should be complete now and the script should work properly.
Another missing sprite has been added for the ammo box.
imageimageimage
edited 4×, last 05.07.12 05:57:14 pm
ok This file has been reviewed and approved by Yates (03.12.15 10:50:29 pm)

Comments

140 comments
Goto Page
To the start Previous 1 2 3 4 5 6 7 Next To the start

Log in!

You need to log in to be able to write comments!Log in
16.08.12 01:48:34 am
Up
michal16202
User
Offline Off
not working, i copied all files and i was edit custom_weapons.lua
weapons = {
     [1] = {
          name = "M134 Minigun", --name
          sprite = "gfx/weapons/m134.bmp", --hold sprite
          sprited = "gfx/weapons/m134_d.bmp", --drop sprite
          snd = "weapons/m134.wav", --sound
          range = 500, --range of bullet
          ammo = 800, --ammo in clip
          maxammo = 9000, --carried ammo
          reloadt = 5000, --reload time
          sndrad = 400, --sound radius
          dmg = 21, --damage
          rid = 90, --real id; the actual weapon the player will have equipped
          disp = 4, --bullet dispersion
          burstmode = true, --burst mode available
          brf = 15, --burst fire bullets dispersion
     },
     [2] = {
          name = "M249", --name
          sprite = "gfx/weapons/m249.bmp", --hold sprite
          sprited = "gfx/weapons/m249_d.bmp", --drop sprite
          snd = "weapons/m249.wav", --sound
          range = 300, --range of bullet
          ammo = 800, --ammo in clip
          maxammo = 100, --carried ammo
          reloadt = 3000, --reload time
          sndrad = 400, --sound radius
          dmg = 17, --damage
          rid = 40, --real id; the actual weapon the player will have equipped
          disp = 3, --bullet dispersion
          burstmode = true, --burst mode available
          brf = 15, --burst fire bullets dispersion
     },
}
15.08.12 10:39:29 am
like I like it!
Up
Egoist
User
Offline Off
Its too bad it doesnt works for me, copied every file in the zip file but it gives the error:EXCEPTION ACCESS VIOLATION

Edit:I saw your edit and re-downloaded it, it looks it is working.
13.08.12 10:49:41 am
like I like it!
Up
gading
User
Offline Off
cool, i saw this from youtube
04.08.12 01:13:46 pm
like I like it!
Up
SurfingGamer87
User
Offline Off
This is so Epic!
01.08.12 01:35:09 pm
like I like it!
Up
DevGru
User
Offline Off
I love this script.
01.08.12 01:31:21 pm
like I like it!
Up
maPmaKer
User
Offline Off
Awesome, man!
31.07.12 10:43:58 am
like I like it!
Up
Infinite Rain
Reviewer
Offline Off
Engi you can do like: Env_Item with name: cspawn <itemid>
30.07.12 06:13:01 pm
like I like it!
Up
cloudboys
User
Offline Off
Bloody epic script.
30.07.12 06:12:20 pm
Up
VADemon
User
Offline Off
@user EngiN33R:
http://www.unrealsoftware.de/files_show.php?file=11747&start=60#com120390
That was a suggestion
Code:
1
2
3
4
5
6
function always()
frame=frame+1
if frame==2 then --every 2nd frame etc.
--update images, etc.
end
end
18.07.12 10:50:22 pm
like I like it!
Up
Suprise
BANNED
Offline Off
aww Bug :
When you choose ASR-2 and you are dead and you are dead when you used scope, that scope won't remove itself. also i can scooping with glock btw.
18.07.12 10:05:06 pm
like I like it!
Up
Misho
User
Offline Off
user Suprise it's cequip ID Weapon
That means cequip 1 1
Lol i tested but i had claws skin, but it's okay.
18.07.12 10:01:36 pm
like I like it!
Up
Suprise
BANNED
Offline Off
Hah for me doesn't work
Typed: cequip 1 F250 13 50
Btw Great work if this really works
18.07.12 09:56:13 pm
like I like it!
Up
Misho
User
Offline Off
lol i didn't know about this file.
I saw the video and it's pretty awesome.
07.07.12 01:13:42 pm
Up
XTripleJaxX
User
Offline Off
Any template script for that?
07.07.12 11:19:21 am
Up
EngiN33R
Moderator
Offline Off
No, CS2D doesn't provide that kind of integration with itself. You can create a map script and use the cspawn Lua function to spawn cweapons on certain positions.
07.07.12 10:47:08 am
Up
XTripleJaxX
User
Offline Off
Anyway to spawn weapons in the editor as a entity?
07.07.12 10:21:55 am
Up
EngiN33R
Moderator
Offline Off
@user Infinite Rain: Because it would involve more trickery and CPU cycles.

Thank you everyone for your words of praise.

@user XTripleJaxX: Open the Console commands box in the description and see for yourself.
07.07.12 09:23:28 am
Up
XTripleJaxX
User
Offline Off
So how do i spawn a weapon after making it?
07.07.12 03:46:17 am
like I like it!
Up
Eternal
User
Offline Off
Awesome !!
06.07.12 11:49:37 pm
like I like it!
Up
Powermonger
User
Offline Off
Very nice script! Awesome job!
If you aren't the best scripter you definitely are "the bestest"! : D
To the start Previous 1 2 3 4 5 6 7 Next To the start