IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> RCBot and Hand Grenade suggestion !, Yep yep
Lyran
post Dec 18 2004, 07:55 PM
Post #1


Advanced Member
***

Group: Members
Posts: 60
Joined: 27-April 04
Member No.: 295



Hey hey !

What's up folks ? 'Sup Cheeseh !

Well well, let's start.

Yesterday I played with RCBots (in Marines) and during the game I thought about something related to Hand Grenades.

I'm not sure, but, I think right now it'd be possible to put Hand Grenade-specific waypoints (or Flags) so a Marine RCBot would use his HG at that specific waypoint. Right ? I'm not sure but I haven't waypointed a map in months ! ohmy.gif

Anyway...

So, I thought about something.

I noticed that the Marines use their available weapons in order (is it a technical fact ? because it does at least look like they do). For example, a Marine RCBot will always deplete his LMG clips, and then, takes the Pistol, depletes ammo, and then uses the Knife, right ?

But I know they usually use the Knife against Alien Resource Towers, but that's part of the coding, of the priorities they have against specific targets, isn't it ?

Well, instead of just using waypoints or flags (again IF that is the case, I'm not sure if it is) for them to use HG's, would it be technically possible for them to use the Hand Grenade BEFORE the Knife and AFTER the Pistol during a combat situation ?

And of course, that order would "apply" only when the HG research itself would be completed, and the HG available.

That wouldn't be "difficult to code" hum ? unsure.gif

I would well imagine that.

RCBot see Onos, depletes his LMG, depletes his Pistol (hey let's assume he is a rebel Rambo RCBot bent on survival) and then notices he has a HG ! What a chance isn't it dude ?!

Seriously though, would that be possible ?

Because right now, pretty much everything can be done by RCBots, I mean...even using the Jetpack and Welder. Why not the Hand Grenade ?

Just a suggestion !

Peace. biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post Dec 18 2004, 08:25 PM
Post #2


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



I don't think they use hand grenades at all, but the order of weapons they use is determined by their priority in the bot_weapons.ini file... I wonder if the grenades are in there...


-----------------


After much searching via trial and error using my laser sight plugin, I found the handgrenade ID is 28, what the babblers once were, so I dunno if that has any impact on wether marines can use them or not.. ::goes to look in the source code::


------------------

CODE
enum
{
NS_WEAPON_NONE = 0,

// Alien weapons
NS_WEAPON_CLAWS,
NS_WEAPON_SPIT,
NS_WEAPON_SPORES,
NS_WEAPON_SPIKE,
NS_WEAPON_BITE,  // Level 1 bite
NS_WEAPON_BITE2, // Level 3 bite
NS_WEAPON_SWIPE,
NS_WEAPON_WEBSPINNER,
NS_WEAPON_METABOLIZE,
NS_WEAPON_PARASITE,
NS_WEAPON_BLINK,
NS_WEAPON_DIVINEWIND,

// Adding a new weapon?  Don't forget to add it's weight in AvHGamerules::GetWeightForItemAndAmmo(AvHWeaponID inWeapon, int inNumRounds)
NS_WEAPON_KNIFE,
NS_WEAPON_PISTOL,
NS_WEAPON_MG,
NS_WEAPON_SONIC,
NS_WEAPON_HMG,
NS_WEAPON_WELDER,
NS_WEAPON_MINE,
NS_WEAPON_GRENADE_GUN,

// Abilities
NS_ABILITY_LEAP,
NS_ABILITY_CHARGE,

NS_WEAPON_UMBRA,
NS_WEAPON_PRIMALSCREAM,
NS_WEAPON_BILEBOMB,
NS_WEAPON_ACIDROCKET,
NS_WEAPON_HEALINGSPRAY,
NS_WEAPON_BABBLER,
NS_WEAPON_STOMP,
NS_WEAPON_DEVOUR

// Can't go over 32 (client.cpp, GetWeaponData())

};


The babblers are still in the source, and the grenade isn't, and I haven't jacked around with that part of the code yet, cause I'll no doubt mess something up, but urm.. I dunno. I'm tired. lol
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Lyran
post Dec 19 2004, 01:01 AM
Post #3


Advanced Member
***

Group: Members
Posts: 60
Joined: 27-April 04
Member No.: 295



So you're saying that would be possible to make them use the Hand Grenades with proper coding ? ohmy.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post Dec 19 2004, 06:56 AM
Post #4


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



I think so, I dunno, they may freak out when they use em or something.. The code for normal grenades could be swapped in for em though..
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Dec 20 2004, 01:45 PM
Post #5


Admin
*****

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



to make them use grenades add the grenade into bot_weapons.ini, but I've still to do that
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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: 13th August 2025 - 09:54 PM