New plugin idea
New plugin idea
Can we make a plugin (not extra item) ....by using the new speed set/reset natives for zombies to get a x speed in x amount of time with x cooldown
LOL
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
What?!
so this is my idea.....a button must be used to initiate the plugin if the player is zombie he will get this ability for speed boost...if he presses the button he will get speed for an amount of time before the cooldown
LOL
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
So this all means you need a plugin for speed boost for x time?
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Description:
Speed boost plugin gives zombie extra speed for amount of time then removes it.
Say /sb to enable it.
Cvars:
Speed boost plugin gives zombie extra speed for amount of time then removes it.
Say /sb to enable it.
Cvars:
- Time to remove the extra speed
Code: Select all
ze_speedboost_time 3.0
- The new speed the zombie gets
Code: Select all
ze_boost_speed 320
- #include <zombie_escape>
- new g_pCvarSpeedBoostTime, g_pCvarBoostSpeed
- public plugin_init()
- {
- register_plugin("[ZE] Addons: Speed Boost", "1.0", "Jack GamePlay")
- register_clcmd("say /sb", "SpeedBoost")
- g_pCvarSpeedBoostTime = register_cvar("ze_speedboost_time", "3.0")
- g_pCvarBoostSpeed = register_cvar("ze_boost_speed", "320")
- }
- public SpeedBoost(id)
- {
- if (!is_user_alive(id) || !ze_is_user_zombie(id))
- return
- ze_set_zombie_speed(id, get_pcvar_num(g_pCvarBoostSpeed))
- set_task(get_pcvar_float(g_pCvarSpeedBoostTime), "Remove_Speed", id)
- }
- public Remove_Speed(id)
- {
- if (!is_user_alive(id) || !ze_is_user_zombie(id))
- return
- ze_reset_zombie_speed(id)
- }
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
By the way, it will give 2 warnings.
Just remove PLUGIN_CONTINUE & It'll be solved.
Anyway, i will improve it after few hours.
He who fails to plan is planning to fail
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Plugin avialable: viewtopic.php?f=15&t=3220
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
Sign in
Who is online
Users browsing this forum: No registered users and 4 guests