omg User
Offline
seriously? it took me 5 minutes to make a multiple weapons script for my own purposes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
addhook("walkover","pillage")
function pillage(id,item,itemtype,ammocount,magazineammo,itemmode)
	if itemtype>78 and itemtype<85 then
		parse("removeitem "..item)
		parse("setarmor "..id.." "..itemtype+122)
		return 1
	elseif (itemtype>56 and itemtype<61) or itemtype==70 or itemtype==71 then
		return 0
	else
		parse("removeitem "..item)
		parse("equip "..id.." "..itemtype)
		return 1
	end
end
note: does not work well with no delay (infinite) item envs because the entity doesnt get triggered to respawn the item with this method
the npcs glitching up/not responding needs to be fixed eventually
it seems that when player id 1 stays for a while and then leaves, half the npcs just lose their object status. i tried putting in a spectating bot as a filler (its put in near the bottom of my main scripts), but it doesnt seem to work Once again, just to know if there's still hope, is something going to be done LagComp-related? @
omg: I am working on trying to make the first release bug free. And the script runs the server with infinite ammo false. And id 78=claws. I can't just have the pick up just be for close combat weapons. It still needs to be allowed to pick up the original weapons of CS2D also
Example
Mehr ![>](img/i_plus.png)
print(infammo, idwep, wepname),
infammo = clipmax -- The weapons original maximum clip size, do not know how to add a custimized ammo from Engin33R's script. Still working out the bugs,
idwep = parse ("equip" ..id.. "weapon id") -- This is for only normal weapon id,
wepname = ecwpn -- ecwpn is a file of all customized weapons to load,
Just an example: This will is not real coding of the script.
Admin/Mod Kommentar
This thread is for ideas only please don't talk about your scripts/projects here. Thank you! @
united: So like lagcomp hardcoded into cs2d--allowing quick console commands to disable/enable?
At least 80% of servers are running it so it doesn't really change the usage of it anyway.
SkullzOrig hat geschrieben
I understand you just want to see all your tiles in 1 set, but what map has all 255 being, Im just asking.
And you just your idea is useless, it can be done in lua. As proved by yourself.
It saves the time from you choosing what you want in your map. Instead of re-adding stuff to your tileset you could have a larger variety. If you don't want 1000 tileset, maybe you can stick with the 255 tileset
Divine hat geschrieben
It saves the time
Searching for the right tiles in a large tileset takes longer than just putting the few tiles which you actually need together into one small tileset. You can load multiple tilesets with
Datei existiert nicht (1730), then you can delete and rearrange the order of tiles so that you can pick out the tiles you want for your tileset. a way to turn off snow/rain
sometimes severs go overboard with small maps and lot of snow, just spammin those guns and stuff makes me lag
I just want higher screen resolution... Admin/Mod Kommentar
OMG! Please READ before posting! Read the reply from
Yates on the previous page... /DC
If you login/logout all binds from autoexec.cfg are reset (have to restart cs2d). Fix this.
Edit:
The last two terrorist choices have the same name. You can't change it in the language file, both are always set to whatever '0302' is in the file. 2× editiert, zuletzt 26.07.12 03:32:44
When I go into map editor, I get logged out after I load a map. Not sure if its happening to others.
To resolve the problem just goto:
CS2D Main Menu Screen
Click on "Options"
Click on the tab that reads "Net"
Now delete your username
And press Ok
Then click on "Options" once more
Click on the "Net" tab
Type in your username again and press "Ok"
And now you should be logged back in
If not, it may be due to low internet connection. DC Admin
Offline
@
archmage: What are you talking about? Logging in/out from a server / the U.S.G.N. / a Windows user? That problem is new to me.
@
SkullzOrig: This has been reported like 100 times. I'm aware of it and it is not necessary to repeat it even more often. @
DC: Sorry, wasn't aware of that.
@
archmage: I haven't had that problem, and I am always get logged out then log back in. Can you show us the binds you have entered in your .cfg file.
Make sure your not typing in inbindall, then you really will have a problem
@
SkullzOrig: You don't need to do all of this.Just delete the last letter of your name and then insert it again with caps on.
Ex:"ahmad" becomes "ahmaD"
DC hat geschrieben
@
archmage: What are you talking about? Logging in/out from a server / the U.S.G.N. / a Windows user? That problem is new to me.
Sorry should have made that clear. I'm talking about logging into/out of the USGN from the options menu.
Also notice my edit of my last post. DC Admin
Offline
That terrorist thing is old and has been reported several times already. It has been fixed for the next version.
I never heard of anyone having your problem of config loss when logging in/out the U.S.G.N.! That makes no sense and it's surely not the normal behavior of CS2D. It doesn't happen to me (or the other people here) when doing that. You can try to extract the zip version of CS2D to another new folder and see if the same problem occurs there. I really don't know the reason for this problem. Nevermind it isn't a bug. I have a bind to left ctrl, and when I login/logout it reloads the controls and overwrites my bind. what about few new useful hooks:
@key - on keypress
@keypressed - while the key is pressed
@keyrelease - on key release (not so necessary)
scriptmen hat geschrieben
what about few new useful hooks:
@key - on keypress
@keypressed - while the key is pressed
@keyrelease - on key release (not so necessary)
Would be better to only have keydown and keyreleased.
keydown - on keypress
keyrelease - on key release i think that "keypressed" is very important one.
imagine - for example in your script you have a place where you can heal when some key is pressed (remember, just like in hl1 and hl2)
it is impossible to do without such hook