Forum
CS2D General CS2D Bug Reports1× editiert, zuletzt 19.05.17 20:03:29
SQ hat geschrieben
Just so reports doesn't repeat:
I've fixed issues with radar getting all messed up after tabbing out when lighting engine is not enabled. And few related issues to that.
I've fixed issues with radar getting all messed up after tabbing out when lighting engine is not enabled. And few related issues to that.
Also that's because you have disabled lighting and played with settings a bit. I think it fixes itself if you press options.
I mean, I can't change and re-code Standart AI.lua if this would change everybody else's too.
And now, I want to use ai_aim. What do you suggest?
bots/Standard AI.luais parsed AFTER all the other scripts. So to make it work anyway I suggest to use a timer ( timer) which then runs a dofile for your own AI script. It should be sufficient to run it once with a tiny delay. Put this in any of the Lua files you load:
1
2
3
4
2
3
4
timer(1,"loadAI") function loadAI() 	dofile("sys/lua/YourAIScript.lua") end
In your own AI script you just overwrite the Lua functions that CS2D calls for the AI. There are just a few. Basically all the functions defined directly in
bots/Standard AI.lua- they all start with "ai_"
You can actually just copy that standard AI script and change what the already defined functions do.
btw: This is going off-topic. If you need further help with this please create a separate thread
Wrench is not used to fix, but damage your buildings, after next it's switch is okay:
https://youtu.be/3S9MGjrEQaQ
retryand
reconnectin console while an sfx is playing will not stop the sfx
@ SQ: crash server Link https://youtu.be/prznw2pA9WQ
1× editiert, zuletzt 23.05.17 08:31:24
http://i.imgur.com/DUfQk4L.gif
http://i.imgur.com/0ZiAxba.png
1× editiert, zuletzt 28.05.17 01:22:36
Zitat
UTF-8 chat messages support (to allow users to chat in more languages)
This feature doesn't work for teamchat
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
addhook("clientdata","rp_noclip") function rp_noclip(id,mode,x,y) 	if mode == 2 then 		if action_f4[id]==true then 			parse("setpos "..id.." "..x.." "..y) 			action_f4[id]=false 			return 		end 		if player(id,"weapontype") == 69 then 			parse("explosion "..x.." "..y.." 32 10000000 "..id) 		end 	end end
It teleports me and sets the explosion in the wrong place.
How to convert?
1
2
2
x*32+16 y*32+16