Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

jakej78bundefined

jakej78b

@jakej78b
About
Posts
3
Topics
2
Groups
0
Followers
2
Following
5

Posts

Recent Best Controversial

  • Function Detouring / Overriding Multiple Times
    jakej78bundefined jakej78b

    So I made a script that successfully sets the gavaknuckles to 1,000,000 damage, the only issue is when I combine this with another script that also detours level.callbackactordamage, one of the detours does not work. Specifically, I am trying to use this in conjunction with
    https://forum.plutonium.pw/topic/32538/release-zm-black-ops-2-custom-perks?_=1721359339869
    I don't see an issue with multiple detours myself, in my mind the first detour would simple execute the second detour's level.callbackactordamage which would then execute the original level.callbackactordamage, though this doesn't seem to be what is happening. How can I make both of these scripts work together? Also, the second script does not call the original function level.callbackactordamagestub, it calls it level.originalcallbackactordamage, which should mean that it is not being overriden.

    init()
    {
    	level.callbackactordamagestub = level.callbackactordamage;
    	level.callbackactordamage = ::buffDamage;
    }
    
    
    buffDamage( inflictor, attacker, damage, flags, meansofdeath, weapon, vpoint, vdir, shitloc, psoffsettime, boneindex )
    {
    	if (isDefined( attacker ) && isplayer( attacker )) {
    		if (weapon == "tazer_knuckles_zm") { 
    			damage = 1000000;
    		}
    	}
    	self [[level.callbackactordamagestub]]( inflictor, attacker, damage, flags, meansofdeath, weapon, vpoint, vdir, shitloc, psoffsettime, boneindex );
    } 
    

  • How to set secondary clip?
    jakej78bundefined jakej78b

    Works perfectly, thank you!


  • How to set secondary clip?
    jakej78bundefined jakej78b

    Hi, I just had a quick question about setting the ammo in a secondary clip. I can use

    player setweaponammoclip("weapon", 0);
    

    This successfully sets the primary clip's ammo, but how would I do it for a secondary clip? The weapon I'm having trouble with is the five seven dual wield.

  • 1 / 1
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate