player's "process" return values. Forum
General
Ideas & bugs for CS2D website (NOT THE GAME!)
Ideas & bugs for CS2D website (NOT THE GAME!)
38 replies
player's "process" return values.
Dousea: Missing Lua IO commands are not a website related thing. Or are you saying that the documentation for those is missing? I only documented the custom CS2D Lua API on the website.I added the process values to
player.
DC: Not Lua I/O commands. Those are CS2D's own I/O commands that are added on version 1.0.0.3? Or 1.0.0.2? Where the mods feature is added?EDIT:
Quote
Lua functions io.enumdir (iterate over all files in a given directory) and io.isdir (check if a given path points to a directory)

DC:
EngiN33R added that Lua function under the 'io' global table. Entity type (or ID) 1 is actually a CT spawn, 0 is a T spawn.
gotya2: You can't just distinguish under 20ms because we got maximumly 50FPS. And it doesn't mean we'll be not over that, as we will get 60FPS in the new update soon. So it shouldn't be documented.
Yates: Fixed.@
gotya2: I added a note to
timer so people are aware. player IDparameter?
http://cs2d.com/help.php?hookcat=all&hook=suicide#hook 
Machete does not have +Attack
EDIT: Also server stats specification please.
edited 1×, last 10.12.17 04:07:54 pm
Hajt: Do you mean decoding the request body?
Hajt: I'll send you stats thing. Usually you attack first and then hit:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("attack","onAttack")
function onAttack(pid)
	msg("Debug: OnAttack("..pid..")")
end
addhook("hit","onHit")
function onHit(vic,src)
	msg("Debug: OnHit("..vic..","..src..")")
end
Debug: OnHit(3,1)
Debug: OnAttack(1)
Bowlinghead: was that via new game? If so can you test on a dedi?By the way wrong thread :p
image command doesn't have "<light>" documented.usage
imageid = image("<light>",200,200,1) I think this thing is being unused and forgotten.
But i was about to make a campfire with custom light and just remember that somewhere SQ made a post about custom light images.
Change this:

for this:



Offline
Online