Custom Smoke - Again

Сообщения
50
Реакции
-1
Ошибка
No Error
ОС
Linux
Amx Mod X
1.9.0
Билд
ReHLDS version: 3.7.0.696-dev
ReGamedll
ReGameDLL version: 5.18.0.474-dev
Build date: 11:07:34 Jul 16 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/efb06a7
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
[ 1] AMX Mod X     RUN   -    amxmodx_mm_i386.so        v1.9.0.5271  ini  Start ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 3] Revoice RUN - revoice_mm_i386.so v0.1.0.33 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 6] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 7] MySQL RUN - mysql_amxx_i386.so v1.9.0.5271 pl1 ANY ANY
[ 8] Fun RUN - fun_amxx_i386.so v1.9.0.5271 pl1 ANY ANY
[ 9] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5271 pl1 ANY ANY
[10] CSX RUN - csx_amxx_i386.so v1.9.0.5271 pl1 ANY ANY
[11] Orpheu RUN - orpheu_amxx_i386.so v2.6.3 pl1 ANY ANY
[12] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl1 ANY Never
[13] Engine RUN - engine_amxx_i386.so v1.9.0.5271 pl1 ANY ANY
X[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5271 pl1 ANY ANY [15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5271 pl1 ANY ANY
15 plugins, 15 running
Список плагинов
[  1] Advanced Bans           0.8         Exolent           advanced_bans_s  running  
[ 2] Hebrew Fix 1.0 niko hebrew_fix.amxx debug
[ 3] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 4] Players Menu 1.8.2 AMXX Dev Team plmenu_ab_base. running
[ 5] unknown unknown unknown plmenu_ab_dod.a bad load
[ 6] unknown unknown unknown plmenu_ab_tfc.a bad load
[ 7] Admin Base (SQL) 1.8.2 AMXX Dev Team admin_sql.amxx running
[ 8] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 9] Slots Reservation 1.8.2 AMXX Dev Team adminslots.amxx running
[ 10] unknown unknown unknown guard.amxx bad load
[ 11] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 12] Menus Front-End 1.8.2 AMXX Dev Team menufront.amxx running
[ 13] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
X[ 14] Players Menu 1.8.2 AMXX Dev Team plmenu.amxx running [ 15] Maps Menu 1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 16] Plugin Menu 1.8.2 AMXX Dev Team pluginmenu.amxx running
[ 17] Admin Chat 1.8.2 AMXX Dev Team adminchat.amxx running
[ 18] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running
[ 19] Info. Messages 1.8.2 AMXX Dev Team imessage.amxx running
[ 20] NextMap 1.8.2 AMXX Dev Team nextmap.amxx running
[ 21] Nextmap Chooser 1.8.2 AMXX Dev Team mapchooser.amxx running
[ 22] TimeLeft 1.8.2 AMXX Dev Team timeleft.amxx running
[ 23] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 24] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 25] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am running
[ 26] StatsX 1.8.2 AMXX Dev Team statsx.amxx running
[ 27] Auto-Mix 1.1.4 p1Mp NewMix2.amxx running
[ 28] RECORD 1.0 TweoN Record.amxx running
X[ 29] AMXX-CMD Advanced 1.4 ImNativus AMX-CMDT.amxx running [ 30] unknown unknown unknown AdminsManager.a bad load
[ 31] All Chat 1.1 Ian Cammarata deadvoice.amxx running
[ 32] Mute Menu v5.0 Edited By Shon & Mute.amxx running
[ 33] Block jointeam 0.1 Exolent AntiJT.amxx running
[ 34] Block Hud TextArgs BLOCK_MESSAGES_ running
[ 35] Reconnect Features 0.2.4 BETA ConnorMcLeod antiretry.amxx running
[ 36] Team Join Management 0.3 Exolent team_join.amxx running
[ 37] AMXX Gag 1.4.7 xPaw & Exolent AMX-GAG.amxx running
[ 38] Ace Announcement 1.0 TweoN ACE.amxx running
[ 39] End round stats 1.1 idan and xO[r]el PrintDamageNew. running
[ 40] Remove useless models, 1.0 slz fixmap.amxx running
[ 41] Attacked a teammate + 1.0 MJ TK.amxx running
[ 42] Open profile by ID 1.0 NeRoX Rankandtop.amxx running
[ 43] Block New Exploit 1.0 Cylus blockname.amxx running
X[ 44] MOTD Commands 1.3 OciXCrom crx_motdcommand running [ 45] Simple Menu 2.1.2 OciXCrom crx_simplemenu. running
[ 46] GHW Auto Message Displ 2.1 GHW_Chronic GHW_Message_Dis running
[ 47] HeadShot Only 1.2a Dores hsonly.amxx running
[ 48] Restrict Weapons 1.8.2 AMXX Dev Team restmenu.amxx running
[ 49] a 1.0 a respawnFix_2.am running
[ 50] 16000 when Spawn 1.1 Mottzi StartMoney.amxx running
( 5) Load fails: Plugin uses an unknown function (name "dod_user_kill") - check your modules.ini.
( 6) Load fails: Plugin uses an unknown function (name "tfc_userkill") - check your modules.ini.
( 10) Load fails: Plugin file open error (plugin "guard.amxx")
( 30) Load fails: Plugin file open error (plugin "AdminsManager.amxx")
50 plugins, 46 running
Автор плагина
by bionext
Версия плагина
1.07
Исходный код
#include <amxmodx>
#include <engine>
#include <fakemeta>

#if !defined write_coord_f
#define write_coord_f(%1) engfunc( EngFunc_WriteCoord, %1 )
#endif

#define VERSION "1.07"
#define SMOKE_SPRITE "sprites/newsmoke.spr"

new const g_szClassname[] = "custom_smoke";
new g_fwid
new g_evCreateSmoke;
new g_szSmokeSprite;
new g_Cvar_Enabled;
new g_Cvar_Duration;
new g_Cvar_CountSprites;
new g_Clear;
new g_iCvar_Enebled;
new g_iCountSprites;

public plugin_init( )
{
register_plugin( "Custom Smoke", VERSION, "bionext" );

g_Clear = 0;
g_iCvar_Enebled = 0;
g_Cvar_Enabled = register_cvar( "sv_customsmoke", "1" );
g_Cvar_Duration = register_cvar( "sv_smokeduration", "10.0" );
g_Cvar_CountSprites = register_cvar( "sv_smokespritescount", "100" );

unregister_forward(FM_PrecacheEvent, g_fwid, 1);

register_think( g_szClassname, "FwdThink_BlackSmoke" );
register_forward(FM_PlaybackEvent, "FwdPlaybackEvent");
register_logevent("FwdClear", 2, "1=Round_End");
register_logevent("FwdStart", 2, "1=Round_Start");
register_event("TextMsg", "FwdClear", "a", "2=#Game_will_restart_in","2=#Game_Commencing");
}

public FwdClear( )
{
g_Clear = 1;
}

public FwdStart( )
{
g_iCvar_Enebled = get_pcvar_num( g_Cvar_Enabled );
g_Clear = 0;
}

public plugin_precache( )
{
g_szSmokeSprite = precache_model( SMOKE_SPRITE );
g_fwid = register_forward(FM_PrecacheEvent, "FwdPrecacheEvent", 1);
force_unmodified(force_exactfile, {0,0,0},{0,0,0}, SMOKE_SPRITE);
}

public FwdPlaybackEvent( iFlags , iEntity , iEventindex, Float:fDelay, Float:vOrigin[3], Float:vAngles[3], Float:fParam1, Float:fParam2, iParam1, iParam2, iBparam1, iBparam2 )
{
if(iEventindex != g_evCreateSmoke || iBparam2 || !g_iCvar_Enebled)
return FMRES_IGNORED;

new iEnt = create_entity( "info_target" );

if( !iEnt )
return FMRES_IGNORED;

g_iCountSprites = get_pcvar_num( g_Cvar_CountSprites );
new Float:fDuration = get_pcvar_float( g_Cvar_Duration );

entity_set_string( iEnt, EV_SZ_classname, g_szClassname );
entity_set_float( iEnt, EV_FL_nextthink, get_gametime( ));
entity_set_vector( iEnt, EV_VEC_origin, vOrigin );
entity_set_float( iEnt, EV_FL_animtime, fDuration );

return FMRES_SUPERCEDE;
}

public FwdPrecacheEvent(type, const name[])
{
if (equal("events/createsmoke.sc", name))
{
g_evCreateSmoke = get_orig_retval();
return FMRES_HANDLED;
}

return FMRES_IGNORED;
}

public FwdThink_BlackSmoke( iEntity )
{
if( !is_valid_ent( iEntity ) )
return PLUGIN_CONTINUE;

if( g_Clear > 0 )
{
entity_set_int( iEntity,EV_INT_flags, FL_KILLME );
return PLUGIN_CONTINUE;
}

new Float:vOrigin[3];
entity_get_vector( iEntity, EV_VEC_origin, vOrigin );

message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
write_byte( TE_FIREFIELD );
write_coord_f( vOrigin[ 0 ] );
write_coord_f( vOrigin[ 1 ] );
write_coord_f( vOrigin[ 2 ] + 50 );
write_short( 100 );
write_short( g_szSmokeSprite );
write_byte( g_iCountSprites );
write_byte( TEFIRE_FLAG_ALPHA );
write_byte( 11 );
message_end();

message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
write_byte( TE_FIREFIELD );
write_coord_f( vOrigin[ 0 ] );
write_coord_f( vOrigin[ 1 ] );
write_coord_f( vOrigin[ 2 ] + 50 );
write_short( 150 );
write_short( g_szSmokeSprite );
write_byte( 5 );
write_byte( TEFIRE_FLAG_ALPHA | TEFIRE_FLAG_SOMEFLOAT );
write_byte( 11 );
message_end( );

new Float:time = entity_get_float(iEntity,EV_FL_animtime);
time = time - 0.25;

if( time > 0.0 )
{
entity_set_float( iEntity, EV_FL_nextthink, get_gametime( ) + 0.25 );
entity_set_float( iEntity, EV_FL_animtime, time );
}
else
{
entity_set_int( iEntity,EV_INT_flags, FL_KILLME );
}

return PLUGIN_CONTINUE;
}
Hi Guys , need help with some plugin


Custom Smoke by bionext 1.07
https://dev-cs.ru/resources/605/download
i want smoke less trans


Im Tried use this plugin with spr i found : https://gamebanana.com/effects/5993
because im wanna custom smoke , less transparent in my server
because the basic smoke is sucks...

but i have problem , the plugin change the smoke to white color smoke (not like the sprites im use)
its happend with more plugins i tried
so i need help , maybe need do something , setup or i dont know :) , or if have other plugin / other smoke for me.

in the pictures : 1 , the probelm white smke
2. how its should be.

ty all

mm i dont know why ur close my last post , its dont matter i tried on clean server just amxx + meta +rehlds + regamedll
and its same so..
 

Download all Attachments

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу