Author Topic: [SOLVED] Help with a plugin  (Read 637 times)

Bullzai

  • Newbie
  • *
  • Posts: 4
    • View Profile
[SOLVED] Help with a plugin
« on: October 12, 2016, 06:35:46 PM »
 Hello there again!  :D

I would like to ask, how could i protect players from enemy skills like Undead Ulti; Entangling roots, Mesmerize and a lot more. Actually is it possible to protect/avoid all the skills? I have a plugin which puts you in godmode with Prop_Data, "m_takedamage", 0, 1. It works perfectly for bullets and nades. But not for wc3 skills. I only put this for a few seconds after round start, so players can peacefully start the game without dying in 2-3 seconds. Thank you in advance!
« Last Edit: October 13, 2016, 05:06:33 PM by Bullzai »

Revan

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Help with a plugin
« Reply #1 on: October 13, 2016, 03:34:37 PM »
You have to give the player a immunity buff against ultimates, skills and all that stuff.

Code: [Select]
void ToggleCompleteImmunity(int client, bool state) {
   int race = 0; // I think we should be fine using zeroth race as it is intentionally skipped by w3s internally
   War3_SetBuff(client, bImmunitySkills, race, state);
   War3_SetBuff(client, bImmunityUltimates, race, state);
   War3_SetBuff(client, bImmunityWards, race, state);
   War3_SetBuff(client, bImmunityItems, race, state);
   War3_SetBuff(client, bImmunityAbilities, race, state);
}
ToggleCompleteImmunity(client, true);
« Last Edit: October 13, 2016, 03:42:02 PM by Revan »
#war3source on gamesurge

Bullzai

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Help with a plugin
« Reply #2 on: October 13, 2016, 05:06:05 PM »
Thank you, as a matter of fact, few hours ago i did get lucky (copied warden skill actually ;D) and managed to pull off this plugin. I found this https://wiki.alliedmods.net/War3Source_Interface
via google tho and tried using War3Immunity enum but had a lot of troubles with the natives and now i'm just wondering if that wiki is legit or out-of-date? :D
Thx anyway for the help! Appreciate it.

Revan

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: [SOLVED] Help with a plugin
« Reply #3 on: October 18, 2016, 01:06:45 PM »
That links is really outdated. There is a more recent version at the top of the page -> http://ownageclan.com/war3source/functionreference/?search=player
#war3source on gamesurge