Welcome, Guest. Please login or register.

What openbor you prefer: Double dragon,battletoads or final fight !? by lirexpatrio
[December 07, 2012, 07:15:27 pm]


what are your favorite games OpenBOR?! by lirexpatrio
[December 07, 2012, 07:09:46 pm]


Post Some Awesome Videos by maxman
[December 07, 2012, 05:51:39 pm]


Can @cmd playmusic "aaaa" 1 also increse music sound ? by BeasTie
[December 07, 2012, 05:24:38 pm]


Streets of Rage: Silent Storm by mtrain
[December 07, 2012, 03:45:05 pm]


Site will be down for maintenance on 12/8/2012 thru 12/10/2012 by Damon Caskey
[December 07, 2012, 07:42:42 am]


Cancelled SOR 3d Remake by riccochet
[December 07, 2012, 03:58:33 am]


Dungeon Fighter: B.O.R. by msmalik681
[December 07, 2012, 03:24:27 am]


[TUTORIAL] How to create 4 Games of OpenBOR in 1 CD (650 MB) by magggas
[December 06, 2012, 09:46:25 pm]


custknife by Bloodbane
[December 06, 2012, 09:34:09 pm]


blockfx help by B.Kardi
[December 06, 2012, 04:09:14 pm]


street of age 4 hd by corradlo
[December 06, 2012, 01:41:36 pm]


ClaFan - Classic Fantasy ver 1.17 by soniczxblade
[December 06, 2012, 05:01:20 am]


Bug Archive by Bloodbane
[December 06, 2012, 02:00:44 am]


"Bio-Doom" and "Gears of Doom" by BulletBob
[December 05, 2012, 10:07:21 pm]


Contra Locked 'N' Loaded v2 by Bloodbane
[December 05, 2012, 09:39:43 pm]


Downloadable OpenBoR Manual by BeasTie
[December 05, 2012, 08:31:24 pm]


Having trouble testing changes by B.Kardi
[December 05, 2012, 03:05:53 pm]


DragonBall Absalon by msmalik681
[December 05, 2012, 02:52:13 pm]


[Hi-Res] Swamp by Vibrant
[December 05, 2012, 10:47:14 am]


  • Dot Guests: 159
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.



Author Topic: 3685+, some experimental commands  (Read 415 times)

0 Members and 1 Guest are viewing this topic.

Offline utunnels

  • Developer
  • Hero Member
  • *****
  • Posts: 2713
3685+, some experimental commands
« on: May 05, 2012, 01:37:26 am »
models.txt

Code: [Select]
min_noatk_chance {float}
max_noatk_chance {float}
noatk_duration {float}

For example, if you want the enemies to attack every time they have a chance, you can do it like this:

Code: [Select]
min_noatk_chance 0
max_noatk_chance 0

If you specific a range, then there are other factors that affect the actual behaviors, which are kinda black-boxed, so gving the same value to both min and max should make it easier to test.

noatk_duration affects how long the no attack period should last in seconds. Usually you don't need to change that (0.5-0.75 should be fine).


model header

Code: [Select]
attackthrottle {chance} {duration}
Basically, if the global setting allows 80% attack chance and you have attackthrottle 0.1, then you get a chance of [0.8x(1-0.1)]=72%.  {duration} is there to replace global noatk_duration for current entity, it is optional.

Code: [Select]
attackthrottle 0.5 2.5 #stupid enemy


These new commands are experimental. I used them to ease AI debug wihout having to compile every time.

Tell me what do you think what the names should be (I'm not good at inventing names) and how efficient do you think they work.
« Last Edit: May 05, 2012, 01:43:28 am by utunnels »

Offline Bloodbane

  • Hero Member
  • *****
  • Posts: 7113
  • Dark Dragon
Re: 3685+, some experimental commands
« Reply #1 on: May 05, 2012, 01:55:28 am »
 Hmm.... looks good but what's the connection between aggression and these experimental commands?
OpenBoR Manual

Basic OpenBoR Tutorials

OpenBoR Tricks & Tutorials

"The more often enemies attack, the more open they are to counter attacks"

Offline MatMan

  • Hero Member
  • *****
  • Posts: 1320
Re: 3685+, some experimental commands
« Reply #2 on: May 05, 2012, 06:28:59 am »
Great addition.

does this have script support?

 



 0%




SimplePortal 2.3.3 © 2008-2010, SimplePortal