Forum

> > CS2D > General > CS2D Bug Reports
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D Bug Reports

2,058 replies
Page
To the start Previous 1 251 52 53102 103 Next To the start

old Re: CS2D Bug Reports

DC
Admin Off Offline

Quote
cs2d cmd bot_freeze freezes the bots. It shouldn't be a big surprise that they can't aim while being frozen. I guess cs2d lua cmd ai_rotate works anyway because it is an instant operation which does not require the bot update loop (which isn't executed when bots are frozen). I hope that helps to clarify the behavior.
edited 1×, last 19.05.17 08:03:29 pm

old Re: CS2D Bug Reports

SQ
Moderator Off Offline

Quote
@user DanelSonic123:
SQ has written
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.


Also that's because you have disabled lighting and played with settings a bit. I think it fixes itself if you press options.

old Re: CS2D Bug Reports

Masea
Super User Off Offline

Quote
I'm using that command to disable Standart AI.lua, following thing I do is running my own bot script. If I would have changed Standart AI.lua then Standart AI.lua of people's who are going to download my mod will be changed as well. So, to block this, I've used this way.

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 cs2d lua cmd ai_aim. What do you suggest?

old Re: CS2D Bug Reports

DC
Admin Off Offline

Quote
@user Masea: Just overwrite the AI functions with your own ones. Unfortunately
bots/Standard AI.lua
is parsed AFTER all the other scripts. So to make it work anyway I suggest to use a timer (cs2d lua cmd 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
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

old Re: CS2D Bug Reports

Hajt
User Off Offline

Quote
Quote
UTF-8 chat messages support (to allow users to chat in more languages)

This feature doesn't work for teamchat

old Re: CS2D Bug Reports

Mami Tomoe
User Off Offline

Quote
This doesn't work right:
1
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.

old Re: CS2D Bug Reports

Talented Doge
User Off Offline

Quote
If I recall, one of them needs to be converted in order to work as intended.

How to convert?
1
2
x*32+16
y*32+16
To the start Previous 1 251 52 53102 103 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview