Jump to content

Recommended Posts

1. Nume plugin: No fall Damage
2. Autor & Versiune: v3x / 0.2
3. Comenzi: - 
4. Cvar:

Quote

mp_falldamage 0
0 - No fall damage
1 - Fall damage


5. Alte detalii: Cu ajutorul acestui plugin jucatorii nu vor mai primii DMG cand cad de la inaltimi mari.
6. Link download: 
 

#include <amxmodx>
#include <engine>

#define FALL_VELOCITY 350.0

public plugin_init() {
  register_plugin("No fall damage", "0.2", "v3x");
  if(!cvar_exists("mp_falldamage")) {
    register_cvar("mp_falldamage", "0");
  }
}

new bool:falling[33];

public client_PreThink(id) {
  if(get_cvar_num("mp_falldamage") == 0 
  && is_user_alive(id) 
  && is_user_connected(id)) {
    if(entity_get_float(id, EV_FL_flFallVelocity) >= FALL_VELOCITY) {
      falling[id] = true;
    } else {
      falling[id] = false;
    }
  }
}

public client_PostThink(id) {
  if(get_cvar_num("mp_falldamage") == 0 
  && is_user_alive(id) 
  && is_user_connected(id)) {
    if(falling[id]) {
      entity_set_int(id, EV_INT_watertype, -3);
    }
  }
}


7. Poze: -

Sursa: AlliedMods


Link-uri utile, nu ezita sa le folosesti! 😁
Counter-Strike 1.6 (AMXX) Support - click aici

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...