Compatible Plugins List

Plug-ins compatibility with Zombie Escape 1.x only!


User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#11

Post by Raheem » 7 years ago

Jack GamePlay wrote: 7 years ago - VIP Trail.
Optimized the code.
Updated.
:lol: :lol:
He who fails to plan is planning to fail

mzqx
Member
Member
Moldova
Posts: 25
Joined: 7 years ago
Contact:

#12

Post by mzqx » 7 years ago

Soo.. Resemiclip its safe with this?
sv_force_ent_intersection 1

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#13

Post by Raheem » 7 years ago

Yes, Tested and it's working without problems.
He who fails to plan is planning to fail

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#14

Post by czirimbolo » 7 years ago

Is it possible to make the parachute only for humans?
Image

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#15

Post by johnnysins2000 » 7 years ago

czirimbolo wrote: 7 years ago Is it possible to make the parachute only for humans?
Yes

Why do u need parachute Only for Humans And Not for Zombies ?
Nobody Is That Busy If They Make Time :roll:

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#16

Post by czirimbolo » 7 years ago

Can you change it to humans only? ;)
Image

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#17

Post by johnnysins2000 » 7 years ago

czirimbolo wrote: 7 years ago Can you change it to humans only? ;)
:v But Only for You
Nobody Is That Busy If They Make Time :roll:

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#18

Post by czirimbolo » 7 years ago

yes of course, I think it will be too easy for zombies when they have parachute ;)
Image

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#19

Post by johnnysins2000 » 7 years ago

czirimbolo wrote: 7 years ago yes of course, I think it will be too easy for zombies when they have parachute ;)
OK Remind me after 18 May (Next Week)

I think it would be better if Raheem made a cvar for both

Humans and Zombies

Like if we enable Cvar Human "1" do humans can use only parachute and if we turn on the cvar for zm then zombie Can only use it
Nobody Is That Busy If They Make Time :roll:

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#20

Post by czirimbolo » 7 years ago

yes, it would be nice ;)
Image

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#21

Post by Raheem » 7 years ago

Change this line:
  • Code: Select all

    if (get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex])
To:
  • Code: Select all

    if ((get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex]) && (get_member(playerIndex, m_iTeam) == TEAM_CT))
And you done...
Last edited by Raheem 7 years ago, edited 1 time in total.
Reason: Extra () ADDED, Very important.
He who fails to plan is planning to fail

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#22

Post by johnnysins2000 » 7 years ago

Raheem wrote: 7 years ago Change this line:
  • Code: Select all

    if (get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex])
To:
  • Code: Select all

    if (get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex] && get_member(playerIndex, m_iTeam) == TEAM_CT)
And you done...
:o Simple Solution . Thnx Raheem Crizmbolo try this And test it
Nobody Is That Busy If They Make Time :roll:

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#23

Post by johnnysins2000 » 7 years ago

Code: Select all

   #include <zombie_escape>

// Variables
new bool:g_bGiveParachute[33];

// Cvars
new cvar_fall_speed, cvar_give_all;

public plugin_init()
{
	register_plugin("[ReAPI/ZE] Parachute", "1.1", "ReHLDS Team/Raheem");
	RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
	
	// Cvars
	cvar_fall_speed = register_cvar("ze_fall_speed", "90");
	cvar_give_all = register_cvar("ze_give_all_parachute", "1");
}

public plugin_natives()
{
	register_native("ze_give_user_parachute", "native_ze_give_user_parachute", 1)
	register_native("ze_remove_user_parachute", "native_ze_remove_user_parachute", 1)
}

public PM_AirMove(const playerIndex)
{
	if (get_pcvar_num(cvar_give_all) == 1 || g_bGiveParachute[playerIndex] && get_member(playerIndex, m_iTeam) == TEAM_CT)
	{
		if (!(get_entvar(playerIndex, var_button) & IN_USE)
		|| get_entvar(playerIndex, var_waterlevel) > 0) {
			return;
		}
		new Float:flVelocity[3];
		get_entvar(playerIndex, var_velocity, flVelocity);
		if (flVelocity[2] < 0.0)
		{
			flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -get_pcvar_float(cvar_fall_speed);
			set_entvar(playerIndex, var_sequence, ACT_WALK);
			set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
			set_pmove(pm_velocity, flVelocity);
			set_movevar(mv_gravity, 80.0);
		}
	}
}

public native_ze_give_user_parachute(id)
{
	g_bGiveParachute[id] = true
}

public native_ze_remove_user_parachute(id)
{
	g_bGiveParachute[id] = false
} 
Try this
Nobody Is That Busy If They Make Time :roll:

czirimbolo
Veteran Member
Veteran Member
Poland
Posts: 598
Joined: 7 years ago
Contact:

#24

Post by czirimbolo » 7 years ago

it worked, thanks guys
Image

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#25

Post by johnnysins2000 » 7 years ago

Also add Low Gravity In Supply Box as well
Nobody Is That Busy If They Make Time :roll:

User avatar
Spir0x
Veteran Member
Veteran Member
Tunisia
Posts: 641
Joined: 7 years ago
Location: Tunisia
Contact:

#26

Post by Spir0x » 6 years ago

i can't put a model for this parachute plugin :/ update sma please.

User avatar
Raheem
Mod Developer
Mod Developer
Posts: 2214
Joined: 7 years ago
Contact:

#27

Post by Raheem » 6 years ago

The authors not make it with model but anyway i'll do one for you.
He who fails to plan is planning to fail

User avatar
th3_king
VIP
VIP
Egypt
Posts: 35
Joined: 6 years ago
Location: Egypt
Contact:

#28

Post by th3_king » 6 years ago

i have proplem with parachute ... when i jump it give me high gravity ... please fix it thanks ! :)

johnnysins2000
Veteran Member
Veteran Member
Paraguay
Posts: 678
Joined: 7 years ago
Location: Paraguay
Contact:

#29

Post by johnnysins2000 » 6 years ago

Th3 King wrote: 6 years ago i have proplem with parachute ... when i jump it give me high gravity ... please fix it thanks ! :)
Which Parachute Plugin are u using?

The 1 posted In this Forum ?
Nobody Is That Busy If They Make Time :roll:

User avatar
th3_king
VIP
VIP
Egypt
Posts: 35
Joined: 6 years ago
Location: Egypt
Contact:

#30

Post by th3_king » 6 years ago

Yes

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 0 guests