Forum

> > CS2D > General > CS2D Bug Reports
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch CS2D Bug Reports

2.043 Antworten
Seite
Zum Anfang Vorherige 1 251 52 53102 103 Nächste Zum Anfang

alt Re: CS2D Bug Reports

DC
Admin Off Offline

Zitieren
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.
1× editiert, zuletzt 19.05.17 20:03:29

alt Re: CS2D Bug Reports

SQ
Moderator Off Offline

Zitieren
@user DanelSonic123:
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.


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

alt Re: CS2D Bug Reports

Masea
Super User Off Offline

Zitieren
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?

alt Re: CS2D Bug Reports

DC
Admin Off Offline

Zitieren
@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

alt Re: CS2D Bug Reports

Hajt
User Off Offline

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

This feature doesn't work for teamchat

alt Re: CS2D Bug Reports

Mami Tomoe
User Off Offline

Zitieren
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.

alt Re: CS2D Bug Reports

Talented Doge
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 251 52 53102 103 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht