Game Asset Reversing | Releases
ModmeBot:
Thread By: Harry Bo21
Harry Bo21's Custom Triggers with different hints to different players V2.0.0
Download Here! :
Download
{% highlight php %}{% raw %}
================================================================= Usage =============================================================================
#include maps_zombiemode_custom_triggers;
trigger = harrybo21_custom_trigger_spawn_trigger_use( origin, radius, spawn_flags );
trigger = harrybo21_custom_trigger_spawn_trigger_use_model( model, origin, angles, radius, spawn_flags );
trigger = getEnt( "NAME", "targetname" ); // Or script_noteworthy, script_string etc trigger harrybo21_custom_trigger_make_trigger_object( radius );
trigger harrybo21_custom_trigger_set_hintstring_for_all( "NEW HINT STRING" );
trigger harrybo21_custom_trigger_set_hintstring_to_player( "NEW HINT STRING", player );
trigger harrybo21_custom_trigger_enable();
trigger harrybo21_custom_trigger_disable();
trigger harrybo21_custom_trigger_delete();
================================================================= Further notes =============================================================================
As trigger radius uses the notify "trigger" to detect on use, "touched" for if a player comes to it, and "moved_away" if they step out of its radius
"trigger"
example :
while( 1 ) { self waittill( "trigger", player ); }
while( 1 ) { self waittill( "touched", player ); }
while( 1 )
{
self waittill( "moved_away", player );
}
{% endraw %}{% endhighlight %}
The main advantages to this are :
# showing different hints to different players
# Could customize triggers to make noises or do other fancy stuff
# Will not hit hintstring limit as uses a hud elem not the default hints
# Reduce ent count significantly
# Have control of "touching", "using" or "moving away" of the trigger
The disadvantages are :
# if my trigger is near a regular trigger you'll see both hints at once
Download Here! :
Download
xReaction:
whelp, im a sad boy