ai_disable

Discuss Artificial Intelligence and Bot programming.
Post Reply
DieparBaby
Posts: 44
Joined: Tue Dec 05, 2006 3:27 pm
Location: London, Ontario, Canada, eh

ai_disable

Post by DieparBaby »

Just wondering if vanilla quake or WinQuake has an ai_disable console command. I've haven't been able to google one.

Thanks,
DieparBaby
Sajt
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Post by Sajt »

What makes you think it's called exactly 'ai_disable'?

'notarget' makes monsters ignore you unless you shoot them.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
DieparBaby
Posts: 44
Joined: Tue Dec 05, 2006 3:27 pm
Location: London, Ontario, Canada, eh

Post by DieparBaby »

Well I don't know if it's called ai_disable exactly but a search for "quake 1 disable ai" should turn up something if it exists. I just wanted to be able to turn the monster thinks off and on. I'm near the end of writing a quake c 'mod' to do it in case there isn't already a way.
FrikaC
Site Admin
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Post by FrikaC »

There isn't a way, exactly.
DieparBaby
Posts: 44
Joined: Tue Dec 05, 2006 3:27 pm
Location: London, Ontario, Canada, eh

Post by DieparBaby »

Well you could add an extra field called .last_think which would store the last think
that an entity had before the ai was disabled through an impulse. Then you would
set the current .think function to SUB_Null. To turn the ai back on, set the .think
function to .last_think.
frag.machine
Posts: 2126
Joined: Sat Nov 25, 2006 1:49 pm

Post by frag.machine »

DieparBaby wrote:Well you could add an extra field called .last_think which would store the last think
that an entity had before the ai was disabled through an impulse. Then you would
set the current .think function to SUB_Null. To turn the ai back on, set the .think
function to .last_think.
I'm afraid it's a bit more complicated, since the time stills going on, and a lot of things would be screwed (animations, calls to SUB_CalcMove and stuff alike). It would look more like they were frozen on time actually (which could be a funny thing to do just for fun).
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
Entar
Posts: 439
Joined: Fri Nov 05, 2004 7:27 pm
Location: At my computer
Contact:

Post by Entar »

In certain engines (like Vr2 and DarkPlaces) you can use sv_freezenonclients 1.
Urre
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon
Contact:

Post by Urre »

A mod by the same guy who made Conquest (sorry, my memory sucks) had this ability, to freeze things by qc. Maybe it even was Conquest? See, I don't remember
I was once a Quake modder
Entar
Posts: 439
Joined: Fri Nov 05, 2004 7:27 pm
Location: At my computer
Contact:

Post by Entar »

Oh come on Urre, Wazat! Wazat made Conquest, and Jeht and all those other ones...
Urre
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon
Contact:

Post by Urre »

I should've known. Sometimes I just suck. Haven't seen Wazat in a while, that's probably why.
I was once a Quake modder
Post Reply