AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Class Energy Ball (https://forums.alliedmods.net/showthread.php?t=160962)

Kiryu Zero 07-01-2011 17:24

[ZP] Class Energy Ball
 
3 Attachment(s)
[ZP] Class Energy Zombie.


Author: Jim.




This class of the zombie does power balls, by means of pressing MOUSE2.

- Stops the person.
- Throws out the weapon.
- Infects \Kills.


Cvars:
zp_zclass_eb_shoottimes - 5
zp_zclass_eb_speed - 1500
zp_zclass_eb_damage - 60
zp_zclass_eb_cooldown - 5.0
zp_zclass_eb_exploderange - 300
zp_zclass_eb_effecttime - 5.0
zp_zclass_eb_surveffecttime - 2.0


Screenshots:
http://i063.radikal.ru/1107/d3/9937c9a53edb.jpg

http://s54.radikal.ru/i146/1107/3a/c2444e373a1f.jpg

k4y 07-01-2011 17:43

Re: [ZP] Class Energy Ball
 
PHP Code:

#include <hamsandwich>
#include <xs>
#include <fun>
#include <cstrike>
#include <zombieplague>

#define PLUGIN_NAME    "[ZP] Class: Energy Ball"
#define PLUGIN_VERSION    "1.2"
#define PLUGIN_AUTHOR    "Jim"

#pragma tabsize 0 

// 以下7個可開關設定項目,若是不想要使用該項設定,可在最該項目前面加上 // 來取消這項設定.
#define SUPPORT_BOT_TO_USE        //支援BOT使用.(在最前面加上 // 即取消對BOT的技援)
//#define FIRST_ZOMBIE_CANT_USE        //當是第一隻喪屍時,則無法使用喪屍的特殊技能.(在最前面加上 // 即取消這項設定)
//#define HAVE_DYNAMIC_LIGHT_EFFECT    //當喪屍使用能量球聚集能量時,身上會出現光圈特效.(在最前面加上 // 即取消這項設定)
#define WHEN_HITED_DROP_WEAPON        //當人類被能量球擊中時,若是在很近的距離內被擊中時,則會掉落手上的槍.(原則上這是以時間判斷,在能量球發射後1.0秒內被擊中就算)
#define WHEN_HITED_CANT_SHOOT        //當人類被能量球擊中時,會造成短時間內無法開槍.(在受影響的時間範圍內)
#define WHEN_HITED_CANT_MOVE        //當人類被能量球擊中時,會造成短時間內無法移動.(在受影響的時間範圍內)
#define WHEN_DAMAGE_OVER_HEALTH_INFECT    //當人類被能量球擊中時,若是血量被扣光時,則會感染變成喪屍.(在最前面加上 // 即取消這項設定)
#define WHEN_DAMAGE_MAKE_FAIL        //當喪屍受到攻擊時,若在短時間內受到一定的傷害,就會造成能量球聚集失敗.
#define HITED_ZOMBIE_KNOCKBACK        //當喪屍若被能量球擊中時,也會被擊飛.(但不會受傷和受到影響)

#if defined WHEN_DAMAGE_MAKE_FAIL
#define SUPPORT_CZBOT
#define Damage_Check_Time_Range 2.0    //在多少時間內受到累積傷害達到一定數值,就會造成能量球聚集失敗.(單位:秒)
#define Get_Amount_Of_Damage 300.0    //在短時間內受到的傷害的累積數值是多少,就會造成能量球聚集失敗.
#endif

#define Hit_Attack2_Key_Time 3.0    //當玩家連續按住'滑鼠右鍵'多久時間才會開始聚集能量.(單位:秒)
#define Make_EnergyBall_Time 5.0    //當玩家開始聚集能量後,需要多久時間才會聚集完成一個能量球.(單位:秒)
#define EnergyBall_Deduct_Speed    5    //能量球在飛中若是碰到障礙物反彈時,會減低多少速度.
#define Short_Dist_Cant_Shoot 100    //當玩家視角前方距離若低於多少數值,則無法射出能量球.
const Float:Damage_Survivor_Multiplier 1.0    //對倖存者造成的傷害數值的乘數

#define Task_ID_1 param[0]+5333 

WTF??? And Upload the Models File

Kiryu Zero 07-01-2011 17:54

Re: [ZP] Class Energy Ball
 
Forgive, I didn't begin to clean off a plug-in from not the necessary signs.
Models Upload .

abdul-rehman 07-01-2011 17:57

Re: [ZP] Class Energy Ball
 
Instead of so many defines you can add cvars..!

Kiryu Zero 07-01-2011 18:25

Re: [ZP] Class Energy Ball
 
Yes it is possible. Whether tell if that else it is necessary to correct \to add?

georgik57 07-01-2011 18:39

Re: [ZP] Class Energy Ball
 
sounds nice
good job

Dolph_Ziggler 07-01-2011 18:46

Re: [ZP] Class Energy Ball
 
Quote:

Originally Posted by Kiryu Zero (Post 1501610)
Yes it is possible. Whether tell if that else it is necessary to correct \to add?

can you make it english i don't understand

Kiryu Zero 07-01-2011 18:47

Re: [ZP] Class Energy Ball
 
What to correct and add to this plugin?

Thanks georgik57)

tei1995 07-01-2011 21:53

Re: [ZP] Class Energy Ball
 
I saw it in your SV:D
nice zombie

dias 07-01-2011 23:00

Re: [ZP] Class Energy Ball
 
Cool :up:


All times are GMT -4. The time now is 07:17.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.