Random Function

Half-Life HL
Random Function by olograph
Posted 3 weeks ago2019-03-02 21:42:59 UTC • Completed • Half-Life
Loading...
Screenshot Thumbnail
Name
Random Function
By
olograph olograph
Type
Prefab
Engine
Goldsource
Game
Half-Life
Category
Completed
Created
3 weeks ago2019-03-02 21:42:59 UTC
Updated
3 weeks ago2019-03-02 22:01:11 UTC
Views
74
Downloads
9
Comments
0

DESCRIPTION

This is a random function assembly to be used anywhere as based template for firing a target out of a set of targets. This is NOT an assembly to fire targets at random.

Demo: https://www.youtube.com/watch?v=zouNlraP4FY

*License: * CC BY-NC-SA. Commercial use: Please Ask!
Version: 1.0b
Date: 2019-03-02

Requirements: J.A.C.K. 1.1
*Author: * Olo AKA [TA]Olograph[L], leader of the Total Annihilation HLDM clan
Contact: speedman222@hotmail.com
Package Contents:
chars16.wad //To be moved to one’s ‘valve’ folder
rf_demo.jmf
Readme.docx
Foot Note: Contact me for comments, bugs or anything else at the provided e-mail address.

DESIGN

The “prefab” visgroup encompasses all the prefab entity of the random function.
Content of the said visgroupContent of the said visgroup
Breakdown: An env_beam using itself as Start Entity points into hurtable buttons having an origin brush. The env_beam is off by default, has 1 as Life, -1 as Strike Again and has the Toggle flag checked. When the buttons are hit, the related multi_manager turns the env_beam off and the custom target is called.
The randomness comes from the built-in target selection algorithm of the env_beam. In fact, all buttons have the same Name. The Random Strike flag is TOTALLY unrelated.
Entities Manifest : (See readme file)
Entities Count: 9 (5 + 2 per additional choices)

CUSTOMIZATION

Number of Choices
The number of possible targets can be changed by adding/removing hurtable buttons with origin brush.
Odds
To customize the odds, one can remove the origin brush and use info_target instead. While this adds an entity, adding multiple info_target under a single button changes its odds of being hit.

MISC.

The button has been given a very high hp (and the laser a very large damage/sec value), this is to prevent the mechanism from being activated through doors with the gauss.
The button "delay before reset" has been set to 3.5 for the button. This is to allow the laser to display correctly. (Lower values makes the laser hit its previous position before the new one). You might want to set the laser invisible (by setting beam color to 0 0 0) before use.

Comments

You must log in to post a comment. You can login or register a new account.