Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Mar 29, 2024 8:59 am
All times are UTC + 0
AI Hijacker.
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
chr0nicz420
Jumpjet Infantry


Joined: 10 Feb 2016

PostPosted: Mon Apr 24, 2017 2:25 pm    Post subject:  AI Hijacker. Reply with quote  Mark this post and the followings unread

So, I want at least AI are capable of using Hijackers but failing to do so as their Hijackers usually stand still. I want at least they behave like Attack Dogs or Terror Drones that they hunt infantry or vehicles while being passive.

Here's my stuff on Hijacker in case anyone might need to know:

Code:

[HIJACKER]
UIName=Name:HIJACKER
Name=Hijacker
Category=Soldier
Primary=Hijack
Secondary=VirtualScanner
NavalTargeting=6
Prerequisite=NAHAND,NATECH
CrushSound=InfantrySquish
Strength=125
Armor=flak
DefaultToGuardArea=yes ; the much awaited dog default to move and attack when resting
TechLevel=9
Pip=red
Sight=9
Speed=7
Owner=Arabs
RequiredHouses=Arabs,Russians
Cost=1500
Soylent=750
Points=25
IsSelectableCombatant=yes
Thief=yes
VehicleThief=yes
VoiceSelect=HijackerSelect
VoiceMove=HijackerMove
VoiceAttack=HijackerAttackCommand
VoiceFeedback=HijackerFear
VoiceSpecialAttack=HijackerMove
VoiceSpecialAttack=HijackerAttackCommand
VoiceEnter=HijackerMove
VoiceCapture=HijackerAttackCommand
DieSound=HijackerDie
VehicleThief.EnterSound=HijackerEnter
VehicleThief.LeaveSound=HijackerLeave
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
MovementZone=Infantry
ThreatPosed=20   ; This value MUST be 0 for all building addons
ImmuneToRadiation=no
Bombable=yes
AllowedToStartInMultiplayer=no
Size=1
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER,SCATTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
;GEF going to be two dogs now DoubleOwned=Yes
ImmuneToPsionics=yes
IFVMode=0
Sensors=yes
SensorsSight=5
VehicleThief.KillPilots=-1
Cloakable=yes
CloakingSpeed=1

[Hijack]
Damage=1
ROF=30
Range=1
Projectile=InvisibleLow
Speed=30
Warhead=HijackWH
Report=
FireInTransport=no

[HijackWH]
Verses=0%,0%,0%,100%,100%,100%,0%,0%,0%,0%,0%


To be honest, I know nothing about coding Hijacker so yeah...

Back to top
View user's profile Send private message
nlspeed
Grenadier


Joined: 26 Dec 2016

PostPosted: Mon Apr 24, 2017 3:16 pm    Post subject: Reply with quote  Mark this post and the followings unread

Are you asking for help with aimd.ini (the AI using hijackers) or for help with rulesmd.ini?

Back to top
View user's profile Send private message
chr0nicz420
Jumpjet Infantry


Joined: 10 Feb 2016

PostPosted: Mon Apr 24, 2017 3:19 pm    Post subject: Reply with quote  Mark this post and the followings unread

Only on rules. It seems the problem why my AI not using Hijackers is because of the rules that I created on Hijacker. I feel there's a mistake but I don't know which, particularly its weapon, as I want my Hijacker behaves like Attack Dog at least.

Back to top
View user's profile Send private message
4StarGeneral
General


Joined: 14 Sep 2006
Location: Limbo

PostPosted: Mon Apr 24, 2017 8:20 pm    Post subject: Reply with quote  Mark this post and the followings unread

Been awhile since I've modded, but I feel like the biggest issue you're having is that your main weapon is Range=1 and the VirtualScanner isn't helping.
Try adding: GuardRange=15 (or whatever number of cells) to [HIJACKER].
If that doesn't help then my only other guess is it's something to do with VehicleThief which may need a team + mission in aimd.ini.

_________________
"Don't beg for things; Do it yourself or you'll never get anything."

Back to top
View user's profile Send private message Send e-mail YouTube User URL
deathreaperz
Commander


Joined: 20 May 2013
Location: Indonesia

PostPosted: Tue May 02, 2017 1:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

Also CloseRange=yes might help

_________________
Quote:
Humans were born for two things: to pray and be productive.


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1574s ][ Queries: 11 (0.0093s) ][ Debug on ]