AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Colored Rocket Trail (https://forums.alliedmods.net/showthread.php?t=322090)

thEsp 03-15-2020 10:39

Colored Rocket Trail
 
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.

HamletEagle 03-15-2020 13:18

Re: Colored Rocket Trail
 
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.

thEsp 03-15-2020 13:42

Re: Colored Rocket Trail
 
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.

HamletEagle 03-15-2020 14:00

Re: Colored Rocket Trail
 
"Little" is the keyword here. This is not complex enough to be approved.


All times are GMT -4. The time now is 01:10.

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