Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Script Request
Script Request [message #268958] Tue, 26 June 2007 15:29 Go to next message
Oblivion165 is currently offline  Oblivion165
Messages: 3468
Registered: June 2003
Location: Hendersonville, North Car...
Karma: 0
General (3 Stars)
Outline:

Input: Allow Ground Vehicle
       Sub Input - Only this preset
           Sub Input: Attach Script
           Sub Input: Attach Script
           Sub Input: Attach Script
       Sub Input2 - Only this preset
           Sub Input: Attach Script
           Sub Input: Attach Script
           Sub Input: Attach Script
Input: Allow VTOL Vehicle
       Sub Input - Only this preset
           Sub Input: Attach Script
           Sub Input: Attach Script
           Sub Input: Attach Script
       Sub Input2 - Only this preset
           Sub Input: Attach Script
           Sub Input: Attach Script
           Sub Input: Attach Script

Input: Allow Any Vehicle 0 or 1
           Sub Input: Attach Script
           Sub Input: Attach Script
           Sub Input: Attach Script
Input: Max Distance



I could really use a script that would have a bot get into a vehicle under the conditions above. Basically all it would need to do is check the vehicle preset (If it's restricted to yes) and then have the bot run over to it, get in and attach selected scripts to add ai and disable transitions etc.

Any help would be greatly appreciated Thumbs Up


WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
Re: Script Request [message #269182 is a reply to message #268958] Wed, 27 June 2007 11:25 Go to previous messageGo to next message
Oblivion165 is currently offline  Oblivion165
Messages: 3468
Registered: June 2003
Location: Hendersonville, North Car...
Karma: 0
General (3 Stars)
Bump.

I'll only bump this the one time.


WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
Re: Script Request [message #269212 is a reply to message #268958] Wed, 27 June 2007 13:35 Go to previous messageGo to next message
Zion is currently offline  Zion
Messages: 2722
Registered: April 2006
Karma: 1
General (2 Stars)
Danpaul's great at this stuff. He improved Renegades AI to go for armor types over others and use secondary fire.

However, making bots enter vehicles can't be done. Making the vehicle a bot and removing the original though can be done, and seems to be an only way.
Re: Script Request [message #269230 is a reply to message #268958] Wed, 27 June 2007 15:10 Go to previous messageGo to next message
Oblivion165 is currently offline  Oblivion165
Messages: 3468
Registered: June 2003
Location: Hendersonville, North Car...
Karma: 0
General (3 Stars)
There is already a script for it but it is limited. I'm sure it just removes the bot but it does the "entrance" in a believable way. For the life of me i can't remember what its called but I used it on the A New Hope SP mission. The pilots all ran out and got into the craft.

WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
Re: Script Request [message #269306 is a reply to message #269230] Thu, 28 June 2007 03:11 Go to previous messageGo to next message
nopol10 is currently offline  nopol10
Messages: 1043
Registered: February 2005
Location: Singapore
Karma: 0
General (1 Star)
There is? That would be uber cool!

nopol10=Nopol=nopol(GSA)

http://i14.photobucket.com/albums/a330/napalmic/siggy.jpg
Re: Script Request [message #269308 is a reply to message #268958] Thu, 28 June 2007 03:25 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
I suspect the infantry bots were just commanded to goto the vehicle they were supposed to get into, and once they got there it would make them enter the vehicle ( timer to check how close they are, since the action_complete event does not get called properly when bots reach the end of their waypath ).

Once they get to the vehicle you just delete the bot and give the vehicle whatever AI related scripts you want. I have a custom vehicle AI class that I create subclasses of for various different types of AI: Offensive, defensive, stationary turret, and all have parameters that allow you to specify in Level Edit what priority it should give to each type of target (EG: A machine gun type weapon would prioritise infantry and light vehicles, whereas a cannon type weapon would prioritise heavy vehicles)



If your only controlling access based on whether the vehicle is a ground of VTOL vehicle use the IsVTOLVehicle and IsVehicle scripts to check if its allowed to use them ( cant remember off the top of my head their exact names, its something like that ).

NB: A VTOL vehicle will ALSO return true on IsVehicle, so make sure to check if its a VTOL first, and then check if its a ground vehicle.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Thu, 28 June 2007 03:28]

Report message to a moderator

Re: Script Request [message #269469 is a reply to message #268958] Thu, 28 June 2007 17:05 Go to previous messageGo to next message
Oblivion165 is currently offline  Oblivion165
Messages: 3468
Registered: June 2003
Location: Hendersonville, North Car...
Karma: 0
General (3 Stars)
I would gladly do it myself if i had even 1% ability in c++. VB 6.0, sure but C++ is out of my range completely.

WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
Re: Script Request [message #269527 is a reply to message #268958] Thu, 28 June 2007 22:52 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
Wouldn't the script work if you had the bot like walk up to a vehicle as you said and then the script kills the bot and immediately attaches any AI scripts to the vehicle?


-MathK1LL
Re: Script Request [message #269604 is a reply to message #268958] Fri, 29 June 2007 08:31 Go to previous message
Oblivion165 is currently offline  Oblivion165
Messages: 3468
Registered: June 2003
Location: Hendersonville, North Car...
Karma: 0
General (3 Stars)
Negatory, I'm going to have upwards of 50-75 bots on each team active at anytime. They would need to be controlled a little more than that to make the gameplay smooth.

WOL: Ob165ion Skype: Oblivion165 Yahoo Instant Messenger: CaptainJohn165
Previous Topic: level edit
Next Topic: Plugins for SSGM
Goto Forum:
  


Current Time: Sat Dec 21 18:24:55 MST 2024

Total time taken to generate the page: 0.00896 seconds