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

Colored Rocket Trail


Post New Thread Reply   
 
Thread Tools Display Modes
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
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-15-2020 , 13:18   Re: Colored Rocket Trail
Reply With Quote #2

Quote:
Do not post plugins "just for the sake of it". eg. A fulfilled request may have been useful for one or a few people, but that does not necessarily mean that it has a place in the Approved section. Please take the time to expand your knowledge and produce some quality work.
These simple 5 line plugins are not nearly enough.
__________________
HamletEagle is online now
thEsp
BANNED
Join Date: Aug 2017
Old 03-15-2020 , 13:42   Re: Colored Rocket Trail
Reply With Quote #3

Sir I don't exactly get your point... The code is indeed short but I didn't post this plugin "just for sake of it" or "just so it exists". It is a little addition to HL with a little effect, which in my opinion is cool. But okay, I won't ignore the rule that unapproved plugins should furthermore be supported.

Peace.
thEsp is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-15-2020 , 14:00   Re: Colored Rocket Trail
Reply With Quote #4

"Little" is the keyword here. This is not complex enough to be approved.
__________________
HamletEagle is online now
Reply


Thread Tools
Display Modes

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 07:38.


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