Forum

> > CS2D > General > Ideas & bugs for CS2D website (NOT THE GAME!)
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Ideas & bugs for CS2D website (NOT THE GAME!)

38 replies
Page
To the start Previous 1 2 Next To the start

old Re: Ideas & bugs for CS2D website (NOT THE GAME!)

Dousea
User Off Offline

Quote
@user 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
ADDED
Lua functions io.enumdir (iterate over all files in a given directory) and io.isdir (check if a given path points to a directory)

old Re: Ideas & bugs for CS2D website (NOT THE GAME!)

Bowlinghead
User Off Offline

Quote
Strange behaviour on the attack and hit hook.
Usually you attack first and then hit:
1
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
I created a bot and freezed him. Then I hit him once. The output was:
Debug: OnHit(3,1)
Debug: OnAttack(1)

old Re: Ideas & bugs for CS2D website (NOT THE GAME!)

Mora
User Off Offline

Quote
cs2d lua cmd 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.
To the start Previous 1 2 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview