Half-Life и Adrenaline Gamer форум
http://www.aghl.ru/forum/

Power play (HL) - 2013-12-22
http://www.aghl.ru/forum/viewtopic.php?f=19&t=1547
Страница 1 из 2

Автор:  BodyBuilder [ 22 дек 2013, 17:42 ]
Заголовок сообщения:  Power play (HL) - 2013-12-22

power play (HL)

This plugin actually does not exist, but there are separate parts.
Mod likes "severian hl mod, AG-HL arcade, OZDM, XDM"

Description:
* Tripmine, snark primary attack faster than normal.
* Satchel, 9mmAR grenades secondary attack faster than normal.
* Shotgun reloads much faster than normal.
* Shotgun shoots much faster than normal.
* more damage increased from normal, weapons 9mmhandgun-GLOCK, 357-PYTHON, SHOTGUN, 9mmAR-MP5, CROSSBOW.
* Crossbow reloads much faster than normal.
* Crossbow shoots faster than normal.
* Crowbar fire faster than normal.
* Refill / Reload wepons clip, ammo on kill.
* 9mmhandgun-GLOCK secondary attack zoom.
* Fly crowbar, handgrenade secondary attack.

Include modules:
* hamsandwich
* fakemeta
* engine

Cvars:
* pphl_remove_entity 0/1 remove weapon, ammo server likes clean
* pphl_deceptive_satchel 0/1 fun, deceptive satchel radio bom model

Вложения:
Скачать плагин или Скачать исходник [power_play_hl.sma - 26.86 КБ]
Скачиваний: 672

Автор:  Turanga_Leela [ 22 дек 2013, 18:25 ]
Заголовок сообщения:  Re: Power play (HL) - 2013-12-22

Код:
public spawn_player(id)
{
   alive[id] = is_user_alive(id)

   if(is_user_alive(id))
   {
      fm_set_user_longjump(id, true, true)

      for(iId = WEAPON_CROWBAR; iId<=WEAPON_SNARK; iId++)
      {
         get_weaponname(iId, weapon_name, charsmax(weapon_name))
         Give_User_Weapon(id, weapon_name, iId)
      }

      client_cmd(id, "weapon_shotgun")
   }
}
mb ..
Код:
//alive[id] = is_user_alive(id)

        if(is_user_alive(id)) {
        alive[id] = true;
          // ....
        } else {
             alive[id] = false;
        }

or ...
Код:
alive[id] = is_user_alive(id)

if(alive[id]) {
// ...
}

Автор:  -Maverick- [ 23 дек 2013, 00:14 ]
Заголовок сообщения:  Re: Power play (HL) - 2013-12-22

You are right!
This plugin is at least 1/3 of the real XDM. Good job! BTW, is your plugin like another mod? I haven't tested it yet.
viewtopic.php?f=28&t=1548

Автор:  BodyBuilder [ 23 дек 2013, 01:59 ]
Заголовок сообщения:  Re: Power play (HL) - 2013-12-22

Код:
public spawn_player(id)
{
   alive[id] = is_user_alive(id)

Код:
public CmdStart(id, uc_handle, seed)
{
   if(alive[id]

Автор:  glmmlg [ 24 июл 2017, 18:27 ]
Заголовок сообщения:  Re: RE: Power play (HL) - 2013-12-22

i want to delet satchel , handgrenades , snark , python , hornetgun and egon on player spwan. But i don`t know what line to delet. can someone help me plz ?

Автор:  glmmlg [ 26 июл 2017, 00:34 ]
Заголовок сообщения:  Re: Power play (HL) - 2013-12-22

no one ? :(

Автор:  Lev [ 26 июл 2017, 00:46 ]
Заголовок сообщения:  Re: Power play (HL) - 2013-12-22

Код:
      for(iId = WEAPON_CROWBAR; iId<=WEAPON_SNARK; iId++)
      {
         get_weaponname(iId, weapon_name, charsmax(weapon_name))
         Give_User_Weapon(id, weapon_name, iId)
      }
You should skip desired weapons.
For example
Код:
      for(iId = WEAPON_CROWBAR; iId<=WEAPON_SNARK; iId++)
      {
         if (iId == WEAPON_HANDGRENADE)
            continue;
         get_weaponname(iId, weapon_name, charsmax(weapon_name))
         Give_User_Weapon(id, weapon_name, iId)
      }
Weapon Ids:
Код:
enum
{
   WEAPON_NONE = 0,
   WEAPON_CROWBAR = 1,
   WEAPON_GLOCK = 2,
   WEAPON_PYTHON = 3,
   WEAPON_MP5 = 4,
   WEAPON_CROSSBOW = 6,
   WEAPON_SHOTGUN = 7,
   WEAPON_RPG = 8,
   WEAPON_GAUSS = 9,
   WEAPON_EGON = 10,
   WEAPON_HORNETGUN = 11,
   WEAPON_HANDGRENADE = 12,
   WEAPON_TRIPMINE = 13,
   WEAPON_SATCHEL = 14,
   WEAPON_SNARK = 15
}

Автор:  glmmlg [ 26 июл 2017, 20:27 ]
Заголовок сообщения:  Re: Power play (HL) - 2013-12-22

Something wrong.

Код:
//// power_play_hl.sma
// E:\HL SERVER\valve\addons\amxmodx\scripting\power_play_hl.sma(225) : error
 017: undefined symbol "WEAPON_PYTHON"
// E:\HL SERVER\valve\addons\amxmodx\scripting\power_play_hl.sma(231) : warni
ng 217: loose indentation
//
// 1 Error.
// Could not locate output file compiled\power_play_hl.amx (compile failed).
//
// Compilation Time: 0.34 sec
// ----------------------------------------

Автор:  Lev [ 26 июл 2017, 20:54 ]
Заголовок сообщения:  Re: Power play (HL) - 2013-12-22

You are supposed to place Weapon Ids enum somewhere at the top of the file. It is just logical.

Автор:  glmmlg [ 26 июл 2017, 21:07 ]
Заголовок сообщения:  Re: Power play (HL) - 2013-12-22

yes Lev but i have this error can be a big problem ?

Код:
//// power_play_hl.sma
// E:\HL SERVER\valve\addons\amxmodx\scripting\power_play_hl.sma(246) : warni
ng 217: loose indentation
// E:\HL SERVER\valve\addons\amxmodx\scripting\power_play_hl.sma(248) : warni
ng 217: loose indentation
// E:\HL SERVER\valve\addons\amxmodx\scripting\power_play_hl.sma(252) : warni
ng 217: loose indentation
// Header size:           2956 bytes
// Code size:            27644 bytes
// Data size:            15396 bytes
// Stack/heap size:      16384 bytes; max. usage is unknown, due to recursion
// Total requirements:   62380 bytes
//
// 3 Warnings.
// Done.
//
// Compilation Time: 0.39 sec
// ----------------------------------------

My code
Код:
      for(iId = WEAPON_CROWBAR; iId<=WEAPON_SNARK; iId++)
      {
         if (iId == WEAPON_PYTHON)
            continue;
         if (iId == WEAPON_HANDGRENADE)
            continue;
         get_weaponname(iId, weapon_name, charsmax(weapon_name))
         Give_User_Weapon(id, weapon_name, iId)
      }
.

And here is other problem on Player Spawn don`t give me python and grenade but if i kill someone i have it again :) this is problem.

Страница 1 из 2 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/