Raised This Month: $94 Target: $400
 23% 

[ZP] Extra item: Radar Scanner


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Exolent[jNr] (178)
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-23-2009 , 12:12   [ZP] Extra item: Radar Scanner
Reply With Quote #1

Warning
This plugin is for Zombie Plague Mod, radar does not check team. It's using Zombie_Plague40.amxx natives and detects if player is zombie or not.
Also, sorry for bad english.

Plugin Status: Release!
Plugin Version: 1.2; Version 1.3 by dels! Thank him for updating this plugin!
Download plugin here: http://forums.alliedmods.net/showthread.php?t=92790


Description:
This radar will update every 2 sec and show all zombies as yellow points on your radar. Every time it updates, it plays corresponding BEEP sound - "zombie_plague/nes_8bit_alien3_radar_beep1.wav".

Don't forget to put
zp_radar.cfg in your cstrike\addons\amxmodx\configs\ folder!

Cvars:
  • zp_radar_beep 1/0 - if 1 then every time radar scans, plays sound/zombie_plague/nes_8bit_alien3_radar_beep1.wav if 0 then silent. This CVAR checked only when new round starts!
  • zp_radar_single_round 1/0 - if 1 then radar works only for 1 round and then you have to buy it again, if 0 then radar works until you get killed/infested


Tell me if your want some changes/additions/cvars!
Enjoy!

Some screenshots:

Buying radar:


OH SHI~

__________________


Last edited by SonicSonedit; 06-06-2010 at 12:30.
SonicSonedit is offline
Old 03-23-2009, 12:13
BOYSplayCS
This message has been deleted by BOYSplayCS. Reason: Useless
Old 03-23-2009, 12:15
SonicSonedit
This message has been deleted by SonicSonedit. Reason: Re: Useless
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-23-2009 , 12:17   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #2

Delete the .amxx file.

Also, you should create a cvar to turn the beeping sound on/off.
BOYSplayCS is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-23-2009 , 12:22   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #3

Quote:
Delete the .amxx file.
Before asking to do something like this, try to compile plugin using online compiler. Failed, right?
I have a reason to upload .amxx version - my plugin uses zombie_plague40.sma natives, so it won't compile online, and not much players are good with compiling.

Quote:
Also, you should create a cvar to turn the beeping sound on/off.
Is it a request from Zombie Plague player?
__________________


Last edited by SonicSonedit; 03-23-2009 at 12:24.
SonicSonedit is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-23-2009 , 12:28   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #4

Hi. Some suggestions :

- MSG_ONE -> MSG_ONE_UNRELIABLE
- Use emit_sound() because engfunc() will generate more code/memory.
- About set_task, you can use the "b" flag instead of recreating each time the task ; or using an entity which think it should be more appropriate. ( there is a tuto for that )
- Also remove the .amxx file, you are not allowed to upload it.
Arkshine is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-23-2009 , 12:35   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #5

Quote:
Originally Posted by SonicSonedit View Post
Is it a request from Zombie Plague player?
Does it really matter who the suggestion comes from? You asked for suggestions and he gave you one. It is still your choice to implement it or not
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
4eRT
Senior Member
Join Date: Jan 2009
Location: Russia, Saint-Petersburg
Old 03-23-2009 , 12:57   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #6

lol, where is the sound file?
__________________
Not interested in CStrike modding anymore, but waht a HELL ?!
I am still 61% addicted to Counterstrike! What about you?
4eRT is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-23-2009 , 13:05   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #7

4eRT
Quote:
lol, where is the sound file?
lol, right, my bad xD


arkshine
Quote:
MSG_ONE -> MSG_ONE_UNRELIABLE
right, i'll fix it.
Quote:
Use emit_sound() because engfunc() will generate more code/memory.
that strange, i mean the whole huge ZP using engfunc()...ok, i'll replace it.
Quote:
About set_task, you can use the "b" flag instead of recreating each time the task ; or using an entity which think it should be more appropriate. ( there is a tuto for that )
which way is faster?

Thank you for advices!

Quote:
Does it really matter who the suggestion comes from? You asked for suggestions and he gave you one.
You are right, i'll add a cvar in new version.
__________________


Last edited by SonicSonedit; 03-23-2009 at 13:29.
SonicSonedit is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-23-2009 , 13:57   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #8

Update to 1.1!
optimization (thanks to arkshine !)
added cvar zp_radar_beep (1 - enabled, 0 - disabled) (by BOYSplayCS's request)
__________________


Last edited by SonicSonedit; 03-23-2009 at 14:06.
SonicSonedit is offline
4eRT
Senior Member
Join Date: Jan 2009
Location: Russia, Saint-Petersburg
Old 03-23-2009 , 16:49   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #9

Now looks better Good work, good plugin.
PS: +k 2 u ;)
__________________
Not interested in CStrike modding anymore, but waht a HELL ?!
I am still 61% addicted to Counterstrike! What about you?
4eRT is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 03-23-2009 , 17:13   Re: [ZP] Extra-item: Radar Scanner
Reply With Quote #10

mini-update - code optimization
__________________

SonicSonedit is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:06.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode