Raised This Month: $51 Target: $400
 12% 

Colored Rocket Trail


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Half-Life        Category:   Fun Stuff       
thEsp
BANNED
Join Date: Aug 2017
Old 03-15-2020 , 10:39   Colored Rocket Trail
Reply With Quote #1

Colored Rocket Trail

A simple HL plugin that will add a randomly colored trail to RPG rockets.

Code:
#include <amxmodx> #include <fakemeta> #define ROCKET_TRAIL TE_BEAMFOLLOW #define RANDOM_COLOR random(255) public plugin_init() {     register_plugin("Colored Rocket Trail", "1.0", "thEsp");     register_message(SVC_TEMPENTITY, "msgTempEntity"); } public msgTempEntity() {     if (get_msg_arg_int(1) != ROCKET_TRAIL)         return;         new iEntity = get_msg_arg_int(2), szClassname[32];     pev(iEntity, pev_classname, szClassname, charsmax(szClassname));     if (!equal(szClassname, "rpg_rocket"))         return;     set_msg_arg_int(6, 0, RANDOM_COLOR);     set_msg_arg_int(7, 0, RANDOM_COLOR);     set_msg_arg_int(8, 0, RANDOM_COLOR); }

Source available on GitHub.

Last edited by thEsp; 03-15-2020 at 11:50.
thEsp is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode