pev(ent, pev_renderamt, fVec[0]); set_pev(ent, pev_fuser1, fVec[0]); } frost(ent, Float:fRestore=10.0, Float:fAmount=16.0){ set_pev(ent,pev_rendermode,kRenderTransColor); set_pev(ent,pev_renderfx,kRenderFxExplode); set_pev(ent,pev_rendercolor,Float:{0.0, 200.0, 200.0}); set_pev(ent,pev_renderamt,fAmount); if(!task_exists(ent+TASK_REMOVE_FROZE)){ set_task(fRestore, "restoreTrap",ent+TASK_REMOVE_FROZE); } } makeExplosion(ent, const Float:fOrigin[3]){ // make the smoke message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(TE_SMOKE); write_coord(floatround(fOrigin[0])); // x write_coord(floatround(fOrigin[1])); // y write_coord(floatround(fOrigin[2])); // z write_short(smokeSpr); // sprite write_byte(random_num(30,40)); // scale write_byte(5); // framerate message_end();
create_blast(fOrigin);
emit_sound(ent,CHAN_BODY,"warcraft3/frostnova.wav",VOL_NORM,ATTN_NORM,0,PITCH_NORM); } //Las Machinas de la muerte
ArobCoChcesz(const szClass[]){ new szTarget[32]; new ent=-1; do{ if(giPointer >= MAX_TRAPS) break; ent = engfunc(EngFunc_FindEntityByString, ent, "classname", szClass); if(pev_valid(ent)){ pev(ent, pev_target, szTarget, 31); if(szTarget[0]){ TrieSetCell(gTraps, szTarget, giPointer); giEntsTrigger[giPointer] =ent; giPointer++; } } }while(ent); } public plugin_cfg(){ for(new i=0; i<sizeof gszClasses; i++){ ArobCoChcesz(gszClasses[i]); } } //Effect create_blast(const Float:originF[3]) { new origin[3]; FVecIVec(originF,origin);
// smallest ring message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(TE_BEAMCYLINDER); write_coord(origin[0]); // x write_coord(origin[1]); // y write_coord(origin[2]); // z write_coord(origin[0]); // x axis write_coord(origin[1]); // y axis write_coord(origin[2] + 385); // z axis write_short(exploSpr); // sprite write_byte(0); // start frame write_byte(0); // framerate write_byte(4); // life write_byte(60); // width write_byte(0); // noise write_byte(0); // red write_byte(0); // green//200 write_byte(255); // blue//200 write_byte(100); // brightness write_byte(0); // speed message_end();
// medium ring message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(TE_BEAMCYLINDER); write_coord(origin[0]); // x write_coord(origin[1]); // y write_coord(origin[2]); // z write_coord(origin[0]); // x axis write_coord(origin[1]); // y axis write_coord(origin[2] + 470); // z axis write_short(exploSpr); // sprite write_byte(0); // start frame write_byte(0); // framerate write_byte(4); // life write_byte(60); // width write_byte(0); // noise write_byte(0); // red write_byte(0); // green write_byte(255); // blue write_byte(100); // brightness write_byte(0); // speed message_end();
// largest ring message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(TE_BEAMCYLINDER); write_coord(origin[0]); // x write_coord(origin[1]); // y write_coord(origin[2]); // z write_coord(origin[0]); // x axis write_coord(origin[1]); // y axis write_coord(origin[2] + 555); // z axis write_short(exploSpr); // sprite write_byte(0); // start frame write_byte(0); // framerate write_byte(4); // life write_byte(60); // width write_byte(0); // noise write_byte(0); // red write_byte(0); // green write_byte(255); // blue write_byte(100); // brightness write_byte(0); // speed message_end();
// light effect message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(TE_DLIGHT); write_coord(origin[0]); // x write_coord(origin[1]); // y write_coord(origin[2]); // z write_byte(floatround(get_pcvar_float(gcvarDistance)/5.0)); // radius write_byte(0); // r write_byte(0) // g write_byte(255); // b write_byte(8); // life write_byte(60); // decay rate message_end(); } // give an entity a beam trail set_beamfollow(ent,life,width,Float:rgb[3],brightness) { clear_beamfollow(ent);
message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(TE_BEAMFOLLOW); write_short(ent); // entity write_short(trailSpr); // sprite write_byte(life); // life write_byte(width); // width write_byte(floatround(rgb[0])); // red write_byte(floatround(rgb[1])); // green write_byte(floatround(rgb[2])); // blue write_byte(brightness); // brightness message_end(); }
// removes beam trails from an entity clear_beamfollow(ent) { message_begin(MSG_BROADCAST,SVC_TEMPENTITY); write_byte(TE_KILLBEAM); write_short(ent); // entity message_end(); } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par } */