Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help remove willy pete hitmarkers?
#11
(06-02-2011, 16:13)rotceh_dnih Wrote: hey
Code:
iDFlags & level.iDFLAGS_PENETRATION
is this helpfull?

iDFlags are damage modifying perks like Flak Jacket etc.

I found this:
Code:
self waittill( "explode", localClientNum, position, mod );

Try using this in a thread called at onPlayerSpawned
Code:
for(;;){
self waittill( "explode", localClientNum, position, mod );
self iPrintLnBold(mod);
}
and then throw a smoke at yourself. Report back with results
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#12
ok no joy didnt get any text on screen but thanks for the idea on how to debug xD
called like this
Code:
onPlayerSpawned()
{
    self endon("disconnect");

    for(;;)
    {
        self waittill("spawned_player");
self thread noflash();
  }
}
and put this at the bottom
Code:
noflash()
{
self endon("disconnect");

    for(;;)
{
self waittill( "explode", localClientNum, position, mod );
self iPrintLnBold(mod);
}
}
just makeing sure i did that right but yea
Reply

#13
try
Code:
if(sMeansOfDeath == "MOD_PROJECTILE_SPLASH")
iDamage = 0;

in the _callbacksetup.gsc

if no success, try "MOD_GRENADE_SPLASH"
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#14
ok tried both like this
Code:
/*================
Called when a player has taken damage.
self is the player that took damage.
================*/
CodeCallback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset)
{
    self endon("disconnect");
    if(sMeansOfDeath == "MOD_GRENADE_SPLASH")
iDamage = 0;
    [[level.callbackPlayerDamage]](eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, timeOffset);
}
but still got tags
Reply

#15
Just disable all tags for 2 seconds(or what ever it takes for a smoke to go off roughly... after throwing a flash or smoke by the player, because they go off roughly the same time as you get your gun out to shoot again, so you won't be able to get tags anyway and you wouldnt be able to tell the difference. Then just change it with mod tools.
Reply

#16
Editing the _smokegrenade.gsc should remove hitmarkers from the Willy Pete smoke:

Code:
watchSmokeGrenadeDetonation( owner )
{    
    self waittill( "explode", position, surface );
    
    if( IsDefined(surface) && surface == "water" )
    {
        return;
    }
    
    // do a little damage because it's white phosphorous, we want to control it here instead of the gdt entry
    oneFoot = ( 0, 0, 12 );
    startPos = position + oneFoot;

    SpawnTimedFX( level.fx_smokegrenade_single, position );
    thread playSmokeSound( position, level.smokeSoundDuration, level.sound_smoke_start, level.sound_smoke_stop, level.sound_smoke_loop );
    //level thread play_sound_in_space( "wpn_smoke_grenade_explode", position );

    owner maps\mp\gametypes\_globallogic_score::setWeaponStat( "willy_pete_mp", 1, "used" );

    //killCamEnt = spawn( "script_model", startPos + (0,0,16) );
    //killCamEnt thread deleteAfterTime( 15.0 );
    //killCamEnt.startTime = gettime();
        //EDITED here
    //damageEffectArea ( owner, startPos, level.willyPeteDamageRadius, level.willyPeteDamageHeight, undefined );    
}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it safe exactly when i remove the battery from the laptop? checkitnowa 2 3,167 09-13-2013, 08:15
Last Post: CJGreenLabel
  Help remove timer Dynasty 15 8,309 08-25-2013, 13:56
Last Post: hillbilly
  how to remove commands in the chat ExoGamer* 6 4,452 07-20-2013, 09:24
Last Post: Pozzuh
  Help Remove Death Barriers? Help Please! camxxcore 1 2,566 06-28-2013, 09:38
Last Post: Yamato
  Help threading remove EnVi Sweden Rocks 3 3,279 01-28-2013, 15:26
Last Post: JariZ
  [Release] LiquidPoop - Custom Skins/Camos/Hitmarkers LiquidPoop 6 6,651 09-26-2012, 03:34
Last Post: LiquidPoop
  Help Remove Threading/tidyup hillbilly 4 4,594 09-16-2012, 11:09
Last Post: zxz0O0
  [Request] plugin to remove all secondary ammo ALEXFDR 1 2,361 09-08-2012, 23:32
Last Post: Nekochan
  Remove mini map moosa67 2 2,600 08-22-2012, 21:26
Last Post: Nukem
  [Release] Anti Hitmarkers narkos 5 4,614 07-19-2012, 00:49
Last Post: jakata

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.