Approved Escape Progress Bar

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


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

Escape Progress Bar

#1

Post by Raheem » 3 years ago

Escape Progress Bar

Description:
  • This plugin adds simply a progress bar for every player at fixed place on player screen. This bar helps player to know if he is near to reach the end of the map or not.
Idea:
  • The idea behind is like this, as you may know that every v_ model has 1~4 places for attachments. These places are used to attach muzzle flash and shell eject. Most models uses only 2 attachment, we can add another 2 (max) and control their location from the v_ model. So I edited all default v_ models so we can attach the progress bar sprite in the location we need. I'll make TUT and show you how to make it in any other model or to change the location if you need to do. And note that attachments points is attached to something that will not move much when you move.
  • The progress bar idea based on info zone plugin, you will need to define 18 barrier per map so when player hit any barrier his progress goes up or down depends on where he is. I made 2 maps as examples.
Credits:
  • [mention]Mystic Viper[/mention] told me the idea and it's from: https://www.youtube.com/watch?v=SRhU20y ... l=Jenessee. So mainly idea for attaching sprite to the v_ model instead of muzzle flash is done in this video. So special thanks to [mention]Mystic Viper[/mention] and the credit for progress_bar.spr & attachment method goes to the guy in the video (Token from his server).
Limitations:
  1. You can not easily change the location of the sprite, you must change it in .qc file for models and recompile model again.
  2. You need to define 18 barrier per map, maybe high number to do for every map. You must set them carefully with help of no clip plugin.
  3. Sprite will shake due to weapon recoil and some other knocks.
  4. You must change all player v_ models to the modified ones.
Installation:
  1. Main plugin:
    Escape Progress Bar.zip
    (85.45 KiB) Downloaded 524 times
    Escape Progress Bar.zip
    (85.45 KiB) Downloaded 524 times
  2. Weapon models + Models setting plugin:
    Progress Bar Models.zip
    Modified Models
    (12.09 MiB) Downloaded 522 times
    Progress Bar Models.zip
    Modified Models
    (12.09 MiB) Downloaded 522 times
  3. Open zombie_escape.ini and edit these models to be as following:
    1. [Weapon Models]
    2. V_GRENADE FIRE = models/pb/v_grenade_fire.mdl
    3. V_GRENADE FROST = models/pb/v_grenade_frost.mdl
    4. V_KNIFE HUMAN = models/pb/v_knife.mdl
  4. You can download no clip plugin and install, it will help you setting the barriers:
    no_clip.sma
    (1.08 KiB) Downloaded 370 times
    no_clip.sma
    (1.08 KiB) Downloaded 370 times
  5. No recoil plugin maybe useful [or try find any other better version, this version fails with some pistols]:
    no_recoil.sma
    (1.39 KiB) Downloaded 344 times
    no_recoil.sma
    (1.39 KiB) Downloaded 344 times
  6. Added support for camera via API (Force camera not supported):
    ObscuraCam_0.7.sma
    (6.15 KiB) Downloaded 352 times
    ObscuraCam_0.7.sma
    (6.15 KiB) Downloaded 352 times
  7. Support for admin menu, not full support:
    admin_menu.sma
    (12.81 KiB) Downloaded 408 times
    admin_menu.sma
    (12.81 KiB) Downloaded 408 times
Making barriers:
  1. Create simply every barrier, the barrier is a box you need to define two point and then the box will be drawn. You must name barriers as z1, z2...z18 (Must use these names). z1 will be first barrier at start of the map, and z18 is the last barrier near the escape zone at the end of the map. You have two maps as examples, you can see how I made them. Also will be great idea if you made any map to share so others can use it.
Commands:
  1. say /iz - For admins, will open the menu from where you create barrier boxes.
  2. say /sz - For any player, it increase FOV angle to resolve high resolution issue.
  3. say /hs - For any player, it increase the bar scale to resolve high resolution issue.
  4. amx_noclip "playername" - For admins, will set noclip to use while making barriers.
API Natives:
  1. get_current_zone(id, szTouched[]) - Get the name of the touched zone for any player.
  2. create_progress_bar(id) - Safely create progress bar.
  3. remove_progress_bar(id) - Safely remove progress bar.
    • Read more about then in progress_bar.inc, ask anything about them in this topic.
HOW TO:
  1. How to edit all your v_ models so this plugin works correctly? Check the TUT: viewtopic.php?f=7&t=3841
Screenshots:
  • 1.png
  • 2.png
  • 3.png
  • 4.png
TODO:
  1. Fix any problem if any appears. [Fixed Some ✔]
  2. Make more maps. [I made 5 maps ✔]
  3. Accept and do your ideas.
  4. Make TUT how to modify your own models. [DONE ✔]
  5. Make ability to disable the plugin in undefined maps.
  6. Make some CVARs to control things like sprite size. [DONE ✔]
  7. Support /cam and infection menu through an API. [DONE ✔]
  8. Make it real time update, higher frames.
  9. Add ability by any way to disable the bar if the weapon attachment not in same coordination as defined in models.
Maps:
  • I make barriers for the following maps:
    1. ze_area51_lg
    2. ze_heli3_fix_dp
    3. ze_jurassickpark3_lg
    4. ze_jurassicpark4
    5. ze_vertigo
    Feel free to share what you did and I'll add them in this topic.
Last edited by Raheem 3 years ago, edited 4 times in total.
Reason: Stable v1.0, fixed most bugs.
He who fails to plan is planning to fail

User avatar
z0h1r-LK
Mod Developer
Mod Developer
Morocco
Posts: 473
Joined: 5 years ago
Location: The Red City ❤
Contact:

#2

Post by z0h1r-LK » 2 years ago

Thanks for added map ze_vertigo :)

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