IPB

Welcome Guest ( Log In | Register )

2 Pages V < 1 2  
Reply to this topicStart new topic
> combat
Scikar
post Feb 9 2004, 11:56 PM
Post #21


Member
**

Group: Members
Posts: 19
Joined: 6-February 04
Member No.: 229



Here ya go:

Experience : Level

0 : 1
100 : 2
250 : 3
450 : 4
700 : 5
1000 : 6
1350 : 7
1750 : 8
2200 : 9
2700 : 10


From how to play in the downloads section of natural-selection.org.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 10 2004, 05:18 PM
Post #22


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



thats good info thanks biggrin.gif!!!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
[-UDS-] Azrael
post Feb 16 2004, 02:00 PM
Post #23


Newbie
*

Group: Members
Posts: 3
Joined: 9-February 04
Member No.: 235



hi,

im running a NS 3.0b3 server on steam with rcbot 1.3.

the marines really dont upgrade. but the aliens do.
after installing the aliens doesnt upgrade to lerks, fade or onos, only to gorge.
but one evolved to fade. after i copied his profile, all bots with this profile evolved to fade.

here it is:

CODE

name="[BOT] Gorge"
favmod=0
favteam=5
favmap="ns_hera"
skill=100
spray="chick1"
gorge_percent=10
lerk_percent=20
fade_percent=88
onos_percent=50
numgames=0
hal_pretrain_file="common_hal.trn"
hal_aux_file="common_hal.aux"
hal_ban_file="common_hal.ban"
hal_swap_file="common_hal.swp"


btw why they are not able to evolve to onos or lerk ?

lg
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 16 2004, 06:34 PM
Post #24


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE ([-UDS-] Azrael @ Feb 16 2004, 02:00 PM)
hi,

im running a NS 3.0b3 server on steam with rcbot 1.3.

the marines really dont upgrade. but the aliens do.
after installing the aliens doesnt upgrade to lerks, fade or onos, only to gorge.
but one evolved to fade. after i copied his profile, all bots with this profile evolved to fade.

here it is:

CODE

name="[BOT] Gorge"
favmod=0
favteam=5
favmap="ns_hera"
skill=100
spray="chick1"
gorge_percent=10
lerk_percent=20
fade_percent=88
onos_percent=50
numgames=0
hal_pretrain_file="common_hal.trn"
hal_aux_file="common_hal.aux"
hal_ban_file="common_hal.ban"
hal_swap_file="common_hal.swp"


btw why they are not able to evolve to onos or lerk ?

lg

'cos marine updates haven't been done, see the rest of this thread.!

the alines resources/experience to evolve has probably changed in combat mode as well, can anyone tell me that? biggrin.gif Also if anyone develops anything in combat, how the heck do I know if it's actually a combat map? (instead of just looking at the map name.. I dunno if it is just that though)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
CheesyPeteza
post Feb 16 2004, 07:27 PM
Post #25


Member
**

Group: Members
Posts: 10
Joined: 29-December 03
Member No.: 155



NS tells from the map name, try renaming an ns map to co and see what happens. smile.gif

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 16 2004, 07:42 PM
Post #26


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



damn that was quick tongue.gif

hmm alright.. I guess this is enough to make a start, but I'm busy with other things atm
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
BigBadWoLf
post Feb 24 2004, 06:03 AM
Post #27


Member
**

Group: Members
Posts: 27
Joined: 31-January 04
Member No.: 213



Any updates on the combat issue? dry.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Scikar
post Feb 25 2004, 09:23 PM
Post #28


Member
**

Group: Members
Posts: 19
Joined: 6-February 04
Member No.: 229



Alien Evolution Costs:

All chamber upgrades cost 1 point, no previous requirements.

Evolve to Gorge costs 1 point, no previous requirements.
Evolve to Lerk costs 1 point, must be Gorge already.
Evolve to Fade costs 2 points, must be Gorge already.
Evolve to Onos costs 2 points, must be Fade already.

You cannot work backwards, so for the full tree,

A Skulk may only evolve to a Gorge.
A Gorge may only evolve to a Lerk or a Fade.
A Fade may only evolve to an Onos.
An Onos or a Lerk may not evolve to another evolution.

Think that covers it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
PetitMorte
post Mar 4 2004, 05:49 PM
Post #29


Member
**

Group: Members
Posts: 15
Joined: 15-October 03
Member No.: 90



Marine Upgrade Tree:

CODE

                                /=> JetPack (Cost 2)
                               /
Armor Level 1 => Armor Level 2 => Armor Level 3
                               \
                                \=> Heavy Armor (Cost 2)
Motion Tracking
Scanner
Catylist
Resupply
Grenade
Welder
Mines

Damage Level 1 => Damage Level 2 => Damage Level 3
              \
               \           /=> HMG
                \=> Shotgun
                           \=> Grenade Launcher



Basically everything but Jetpack and Heavy Armor cost 1 point.
You must have Armor Level 1 to get Armor level 2.
You must have Armor Level 2 to get Armor level 3
You must have Armor Level 2 or higher to get Jetpack, or Heavy Armor.
Jetpack and Heavy Armor each cost 2 points, and if you get Heavy Armor, you can't get Jetpack and vice-versa.

You must have Damage Level 1 before you can get Damage Level 2 or Shotgun.
You must have Damage Level 2 before you can get Damage Level 3
You must have Shotgun before you can get HMG or Grenade Launcher
If you get HMG you can't get Grenade Launcher and vice-versa.

You can continue to upgrade your damage level or your armor even if you have bought a better gun or JP/Hvy

Did I miss anything?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Meat_Popsicle
post Mar 18 2004, 10:44 AM
Post #30


RCBot Fan
****

Group: Mappers
Posts: 104
Joined: 22-September 03
From: England
Member No.: 29



hows the combat code coming along then
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Mar 18 2004, 10:31 PM
Post #31


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



done nothing so far, all the latest stuff is in the source, and thats more recent than the current bot release. Got no time to work on it at the moment I'm afraid! huh.gif sad.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Meat_Popsicle
post Mar 19 2004, 07:50 PM
Post #32


RCBot Fan
****

Group: Mappers
Posts: 104
Joined: 22-September 03
From: England
Member No.: 29



is there a compiled version in the source download as well then?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jun 5 2004, 07:25 PM
Post #33


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



*BUMP*

Anyone know the impulse/command to upgrade?!!!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
CheesyPeteza
post Jun 5 2004, 08:08 PM
Post #34


Member
**

Group: Members
Posts: 10
Joined: 29-December 03
Member No.: 155



QUOTE (Cheeseh @ Jun 5 2004, 07:25 PM)
*BUMP*

Anyone know the impulse/command to upgrade?!!!

You can find all the impulses for upgrades in the nsp/ui.txt file. It is used to form the popup menu.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Chichou
post Jun 5 2004, 08:43 PM
Post #35


Member
**

Group: Members
Posts: 23
Joined: 29-May 04
From: france
Member No.: 305



I tried to code something for combat with your source code, but i am a noob C++ coder, so all i do is crap :

So I added this in the middle of the Think function

CODE

if ( gBotGlobals.m_iCurrentMod == MOD_NS && IsMarine())
{
 char name[31];
 // is it a combat map ?
 strncpy(name, STRING(gpGlobals->mapname), 31);
 int level = m_iLevel;
/*buggy*/ int points = *NS_GET_PLAYER_POINTS(m_pEdict);
 DebugMessage(BOT_DEBUG_THINK_LEVEL,NULL,0,"%s has currently : %i levels and %i points",m_szBotName,level,points);
 if ( (level > points + 1)  && (name[0] == 'c') )
 {
  AddPriorityTask(CBotTask(BOT_TASK_MARINE_UPGRADE,0,NULL,level - points - 1 ) );
 }
}

if ( bLookForNewTasks ) [etc...]




and this with the other sections with deal with tasks... The bots choose upgrades in this order, using impulses (anyone know which thing indicates whether the bot has taken resuppply ?) the PointsFree may be used to choose upgrades...

CODE
 case BOT_TASK_MARINE_UPGRADE:
  {
   int PointsFree = m_CurrentTask->TaskInt();
   DebugMessage(BOT_DEBUG_THINK_LEVEL,NULL,0,"Bot is choosing upgrades");
   if ( !(pev->iuser4 & MASK_UPGRADE_1) )
   {
    Impulse(23); // Damage lvl1
   }
   else if ( !(pev->iuser4 & MASK_UPGRADE_4) )
   {
    Impulse(20); // Armor lvl1
   }
   else if ( !(HasWeapon(NS_WEAPON_SONIC)) && !(HasWeapon(NS_WEAPON_HMG)) )
   {
    Impulse(64); // Shotgun
   }
   else if ( (HasWeapon(NS_WEAPON_SONIC)) && !(HasWeapon(NS_WEAPON_HMG)) )
   {
    Impulse(65); // HMG
   }
   else if ( !(pev->iuser4 & MASK_UPGRADE_5) )
   {
    Impulse(21); // armor lvl2
   }
   else if ( !(HasWeapon(NS_WEAPON_WELDER)) )
   {
    Impulse(62); //welder
   }
   else if ( !(pev->iuser4 & (MASK_UPGRADE_7 | MASK_UPGRADE_13)) )
   {
    Impulse(RANDOM_LONG((int)BUILD_HEAVY,(int)BUILD_JETPACK));
   }
   else // if !(pev->iuser4 & MASK_UPGRADE_12)   ??? what is the code for resupply ?
   {
    Impulse(31); // Resupply
   }
   bDone = TRUE;
  }
  break;


The result is that marines take upgrades, but as I don't know how to get points, the comparison between level and points become useless, and the bots get stuck in the "marine upgrade task" (which i added with the other tasks)

Actually the offset for getting points may be wrong, or i take it with the wrong edict, i tried with the one which can be found in the 'NS coding FAQ', and also with the one for beta 4a which i found on the modns.org forum.

Oh, and i forgot to tell you, you forgot a star here :
CODE

#define NS_GET_PLAYER_POINTS(player) (int*)((char*)(player)+NS_PLAYER_POINTS_OFFSET)


because the value returned should a pointer.
And in the code which returns level there is a '/100' missing, so it always think the bot has lvl10... But it is the old source code, and you may have fixed all this...

and the impulse codes which are in the ui.txt (already set as constants in your code) :

QUOTE


UpgradeDamage1/23
Shotgun/64
UpgradeDamage2/24
UpgradeDamage3/25
HMG/65
GL/66

Catalyst/27
Resupply/31

Scan/53
MotionTracking/33

Mines/61
Grenade/37
Welder/62

UpgradeArmor1/20
UpgradeArmor2/21
Jetpack/39
HeavyArmor/38
UpgradeArmor3/22

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jun 5 2004, 11:49 PM
Post #36


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



Well that was easy, never even HAD to worry about levels a lot and experience (the levels are a bit buggy still though...)

they just check upgrades every so often.

I got aliens to evolve species in combat finally

marines to upgrade armor & weapons too#

expect a test dll soon smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

2 Pages V < 1 2
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 14th September 2025 - 02:21 PM