Author Topic: Bot Events II  (Read 27492 times)

Don't half-ass it or cut corners
We won't.



Lug, good news. I showed elm how to use smartgit.

And also, elm updated the server.cs with spawning, so i can start work on basic vce stuff.

We won't.



Lug, good news. I showed elm how to use smartgit.

And also, elm updated the server.cs with spawning, so i can start work on basic vce stuff.
Isn't including vce doing something like VCe_registervar(vehicle, health, %this.health)
omg i meesed that up alot its already 3:30 am

Isn't including vce doing something like VCe_registervar(vehicle, health, %this.health)
omg i meesed that up alot its already 3:30 am

It has to be packaged, I believe. And I'm making a new function to check if the vehicle is an aiPlayer
Code: [Select]
function Vehicle::getBotHealth(%this)
{
if((isObject(%this) && %this.getClassName() $= "aiPlayer") && isObject(%this.client))
{
return %this.getDatablock().maxDamage - %this.getDamageLevel();
}
else
return;
}
package botVce
{
function VCE_initServer()
{
Parent::VCE_initServer();
registerSpecialVar(Vehicle,"health","%this.getBotHealth");
}
};
activatepackage(botVce);


Should I just give it all the values of a regular player?
« Last Edit: August 22, 2012, 09:39:35 PM by Evar678 »

Should I just give it all the values of a regular player?
Generally yes, since the 'standard bot' should handle just like a normal player. You should ensure it works with other custom AI's though too.

nevermind i think i got it

Can you do magic to make it possible to drag bots behind you? Mounting to some mystery node and making the bot's dead body follow you around in a dragging fashion?

Can you do magic to make it possible to drag bots behind you? Mounting to some mystery node and making the bot's dead body follow you around in a dragging fashion?
a dead body is meant to disappear not follow something

idk but since a bot is basically a player it should already have all normal player vce vars

Could you make string boxes use variable replacers?

Code: [Select]
   
if(isPackage("VCE_Main"))
{
%Secondstring = filterVariableString(%Stringfromeventbox,$inputTarget_Self,%client,%client.player);

if(%Secondstring !$= %Stringfromeventbox)
      {
       %Stringfromeventbox = %Secondstring;
      }
}

*downloads smartgit

*installs smartgit

*starts smartgit

*gets error message



*thinks WTF
*has jre installed!

Why do I have the horrible feeling that the re-make of the Bot Events is going to have more options, but have way less user friendliness like another remake I know of?

If you guys build this like VCE, I'm gonna have to kill somebody.

An example of truely abusable would be the crashing servers with 2 lines of events.

VCE can do this.
« Last Edit: August 23, 2012, 12:19:57 PM by Mr.Noßody »

It will be as user friendly as we can possibly make it.

Ex. Drop down menu for a node list in events dialog, instead of having to type it in.

*downloads smartgit

*installs smartgit

*starts smartgit

*gets error message

[img ]http://img198.imageshack.us/img198/3127/unbenanntpnd.png[/img]

*thinks WTF
*has jre installed!
how fix it D:

It will be as user friendly as we can possibly make it.

Ex. Drop down menu for a node list in events dialog, instead of having to type it in.
drop down menu bad idea.
the field allowed you to enter multiple nodes to change at once.

i think first you shouldn't worry about it being user friendly, just make it functional seeing as now bot events is a crap-on