Creating A GPellet mechanism: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "The raTTail Gravity-Pellet (or GPellet for short) is a custom test element designed by KatzRool using the Portal 2 Authoring tools. It drops a ball of energy that glows, hums,...")
 
No edit summary
Line 3: Line 3:
== Downloads ==
== Downloads ==
To get the necessary files for the GPellet, download this zip file
To get the necessary files for the GPellet, download this zip file
https://www.dropbox.com/s/8hjjtlwgoa73e0a/GPellet.zip?dl=0
[https://www.dropbox.com/s/8hjjtlwgoa73e0a/GPellet.zip?dl=0 (Dropbox Link)]
and follow the readme.txt inside the *.zip to install.
and follow the readme.txt inside the *.zip to install.


== Creation ==
== Creation: ==


(Currently under construction)
These are the steps to creating a GPellet mechanism with a ''Dropper'' and ''Receiver''.
 
== Dropper ==
 
* Outputs are in the format ''My output named\Target entities named\Via this input\With a parameter override of\After a delay in seconds of\Fire once only?''
 
# Create a room with 32 Unit thick walls.
# Use the Clipping tool to cut a 128*128 hole in the '''''CEILING.''''' This has to have a Portalable surface below it.
# Create a func_instance with the entity tool and place it in the centre of the hole from the top view. Set the Fix Up Name value to (droppernamehere), I'll be using gdropper_01 for this tutorial. Then, set the VMF Filename value to ''instances/gameplay/gpellet_dropper_normal.vmf''.
# If you want to have the dropper ''start'' enabled, create a logic_auto with this output: ''OnMapSpawn\gdropper_01\instance:logic_enable;Trigger\<none>\0\No''
# If however you wish for the dropper to be ''toggleable'' then do the following: Create a toggleable trigger (I'll be using a prop_floor_button for this). The button will have the outputs: ''OnPressed\gdropper_01\instance:logic_enable;Trigger\<none>\0\No'' and ''OnUnPressed\gdropper_01\instance:logic_off;Trigger\<none>\0\No''.
# To '''''PERMANENTLY''''' disable the dropper, with no re-enabling (use this when the receiver has been activated) create an output on any entity: ''(output)\gdropper_01\instance:logic_disable;Trigger\<none\0\No''.
# To use the dropper you need to use a prop_button entity or anything that has a second output ''exactly'' one second after the first output. If you use a prop_button, always set the Delay before reset value to 1. Create two outputs from the prop_button: ''OnPressed\gdropper_01\instance:logic_dropper_open;Trigger\<none>0\No'' and ''OnButtonReset\gdropper_01\instance:logic_dropper_close;Trigger\<none>\0\No''.
# Now test the dropper!

Revision as of 04:27, 26 March 2016

The raTTail Gravity-Pellet (or GPellet for short) is a custom test element designed by KatzRool using the Portal 2 Authoring tools. It drops a ball of energy that glows, hums, explodes on contact with any surface, destroys physics objects and activates the GPellet Receiver.

Downloads

To get the necessary files for the GPellet, download this zip file (Dropbox Link) and follow the readme.txt inside the *.zip to install.

Creation:

These are the steps to creating a GPellet mechanism with a Dropper and Receiver.

Dropper

  • Outputs are in the format My output named\Target entities named\Via this input\With a parameter override of\After a delay in seconds of\Fire once only?
  1. Create a room with 32 Unit thick walls.
  2. Use the Clipping tool to cut a 128*128 hole in the CEILING. This has to have a Portalable surface below it.
  3. Create a func_instance with the entity tool and place it in the centre of the hole from the top view. Set the Fix Up Name value to (droppernamehere), I'll be using gdropper_01 for this tutorial. Then, set the VMF Filename value to instances/gameplay/gpellet_dropper_normal.vmf.
  4. If you want to have the dropper start enabled, create a logic_auto with this output: OnMapSpawn\gdropper_01\instance:logic_enable;Trigger\<none>\0\No
  5. If however you wish for the dropper to be toggleable then do the following: Create a toggleable trigger (I'll be using a prop_floor_button for this). The button will have the outputs: OnPressed\gdropper_01\instance:logic_enable;Trigger\<none>\0\No and OnUnPressed\gdropper_01\instance:logic_off;Trigger\<none>\0\No.
  6. To PERMANENTLY disable the dropper, with no re-enabling (use this when the receiver has been activated) create an output on any entity: (output)\gdropper_01\instance:logic_disable;Trigger\<none\0\No.
  7. To use the dropper you need to use a prop_button entity or anything that has a second output exactly one second after the first output. If you use a prop_button, always set the Delay before reset value to 1. Create two outputs from the prop_button: OnPressed\gdropper_01\instance:logic_dropper_open;Trigger\<none>0\No and OnButtonReset\gdropper_01\instance:logic_dropper_close;Trigger\<none>\0\No.
  8. Now test the dropper!