3D Rad - Free 3D game maker - Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Coming soon: software updates

Author Topic: User-created plug-ins  (Read 6324 times)

3D Rad Developer - Fernando

  • Administrator
  • 3D Rad Guru
  • *****
  • Posts: 3788
User-created plug-ins
« on: April 01, 2009, 03:47:57 AM »
If you want to share any Script-based plug-in that others can use in their projects without coding, please post it here.

To maximize clarity please do not post anything else to this thread. If you want to discuss a plugin found here, please start a new topic.

Thank You in advance for your cooperation  :)

PLUG-IN SCRIPT REQUIREMENTS

  • it must be a .3dr project with one single Script object in it and nothing else. This will allow others to easily add it to their projects by using the recently improved File->Merge menu option
  • the .3dr file name should start with 'plugin_' to let users locate all plugins easily in their projects folder
  • an usage description must be included to your post, specifying the plugin purpose and the order in which other objects should be linked with the plugin Script object
  • the plugin should be designed with non coders in mind! It means, for example, that the user must be able to configure the script, if applicable, by simply changing clearly marked values in the script header
  • by submitting your script you agree to let others use it and its script code for any purpose

3D Rad Developer - Fernando

  • Administrator
  • 3D Rad Guru
  • *****
  • Posts: 3788
Re: User-created plug-ins
« Reply #1 on: April 01, 2009, 03:49:27 AM »
Goal Arrow

Displays a SkinMesh always facing towards a specified goal. It can be used to implement arrows that help the player reach a location.

INSTALLATION

Download the plugin_GoalArrow.3dr file to the

C:\3D Rad\3DRad_res\projects\

folder on your computer, launch 3D Rad, open your project and then select File->Merge from the pull-down menu.

Select the plugin and when loaded link the objects in your project in the following order (if you make a mistake remove the plugin Script object from the list and merge it again):

  • the SkinMesh object to use as arrow
  • the goal object
  • the CamChase object in which you want to display the arrow


REMARKS

To adjust the run-time position of the arrow on the screen, double-click the plugin Script object and change the values at 'CONFIGURATION'

For an example of usage, please download and launch the GoalArrowPluginTest.3dr project

« Last Edit: April 11, 2009, 03:14:54 AM by 3D Rad Developer - Fernando »
Logged

replicatokid

  • Jr. Member
  • **
  • Posts: 88
Re: User-created plug-ins
« Reply #2 on: April 03, 2009, 08:10:03 AM »
This is something I made a while back and spruced up for this.
It will place a sprite on the location where the target object will be by the time the bullet gets to it.
Which means you don't have to guess how much lead to put on a target, just aim at the sprite.
Logged

psikoT

  • Sr. Member
  • ****
  • Posts: 452
Re: User-created plug-ins
« Reply #3 on: April 11, 2009, 01:12:52 AM »
RACE TIMER

Returns a text string with elapsed minutes, seconds and milliseconds in 00:00:000 format. Thanks to Fernando for code logics and finishing details... (yes, somebody must do de dirty job ;D )

INSTALLATION

Download the plugin_RaceTimer.3dr file to the

C:\3D Rad\3DRad_res\projects\

folder on your computer, launch 3D Rad, open your project and then select File->Merge from the pull-down menu.

Select the plugin and when loaded link the objects in your project in the following order (if you make a mistake remove the plugin Script object from the list and merge it again):

1.- EventTimer
2.- TextPrint


REMARKS

Set the EventTimer to 60 secs. and repeat 1000000 times. Be sure to check "Reset internal timers when stopped".

For an example of usage, please download and launch the RaceTimer_InAction.3dr project.
« Last Edit: April 11, 2009, 03:15:51 AM by 3D Rad Developer - Fernando »
Logged

pedrodx

  • Sr. Member
  • ****
  • Posts: 391
Re: User-created plug-ins
« Reply #4 on: April 17, 2009, 03:21:09 PM »
Plugin Character Chase

Makes a bot character chase any target (is anyone he actually "sees" in his FOV)...
OBJ_0 is the Character bot, OBJ_22 is the bot Skin Mesh, and the remaining objects of the script could be collidable (e.g., rigid body) targets...
Details are on the body of the script text!

See ya, and enjoy!!
Logged

3D Rad Developer - Fernando

  • Administrator
  • 3D Rad Guru
  • *****
  • Posts: 3788
Re: User-created plug-ins
« Reply #5 on: May 01, 2009, 05:29:04 PM »
Hand-brake

Enables hand-brake simulation for the Car object. Input control is fully configurable by the final user by using ConfigureControls object.

INSTALLATION

Download the plugin_HandBrake.3dr file to the

C:\3D Rad\3DRad_res\projects\

folder on your computer, launch 3D Rad, open your project and then select File->Merge from the pull-down menu.

Select the plugin and when loaded link the 'Script: hand-brake' object to the Car in your project.


REMARKS


For an example of usage, please download and launch the HandBrakePluginTest.3dr project

n_iron

  • Full Member
  • ***
  • Posts: 187
Re: User-created plug-ins
« Reply #6 on: June 13, 2009, 09:37:06 PM »
SPEEDOMETER and TACHOMETER

This script addapted from the Speedometer.3dr script provided with 3drad.

INSTALLATION
All you need is 2 speedo (rotarydialA) sprite objects, 2 speedo (rotarydialB) sprite object for the rotary needle indicators and a text print (optional) also a Car object. Link them all to the plugin script. Only edit the values indicated by the Yellow reminder statement. The gearbox specifications are for a 4 speed with overdrive you could add more gears by adding ratio values to the gearboxRatio[] array. The values are configurable but not necessary. All configurable values are indicated by the yellow reminder statement.

REMARKS
For an example please download the sample project. Speedometer-Tacho.3dr
Logged

3D Rad Developer - Fernando

  • Administrator
  • 3D Rad Guru
  • *****
  • Posts: 3788
Re: User-created plug-ins
« Reply #7 on: July 02, 2009, 03:10:37 AM »
Non-rolling wheel props

Non-rolling wheel props (like exposed sports car brakes) and replacements (like snowmobile skis).

INSTALLATION

Download the plugin_CarSki.3dr file to the

C:\3D Rad\3DRad_res\projects\

folder on your computer, launch 3D Rad, open your project and then select File->Merge from the pull-down menu.

Select the plugin and when loaded link the 'Script: car ski manager' object to the Car in your project.


REMARKS


For an example of usage, please download and launch the SnowmobileDemo.3dr project