AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Bazooka + New Modes v1.6 (https://forums.alliedmods.net/showthread.php?t=142539)

Vechta 11-07-2010 03:58

[ZP] Bazooka + New Modes v1.6
 
5 Attachment(s)
[ZP] Extra item: Bazooka + New Modes

Description: Here you can download a custom Bazooka for Zombie Plague,
it has new modes you'll see it under Cvars.
The modes are switchable by Pressing Attack2 (Right mouse click).
Alot of people requested it on this and other forums, i had using this
private for some weeks but now I want to release it and only here
you can download it now. Have fun with it :D

Included:
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
#include <zombieplague>
#include <xs> 

Cvars:
You will also find all Cvars in the zp_bazooka_modes.cfg files, you
can change them there.
PHP Code:


// Delay - How long it will be taken to reload Bazooka
zp_bazooka_delay 10 // Standart - 10

// Damage - How many damagen taken if touching ground
zp_bazooka_damage 650 // Standart - 800

// Radius - Radius of damage if rocket touch ground
zp_bazooka_radius 250 // Standart - 500

// Map - Bazooka just one Round or full map?
zp_bazooka_map 0 // 0 - Disabled | 1 - Enabled

// Award - How many packs gain if taken more damage then -
// zp_human_damage_reward cvar
zp_bazooka_awardpacks 1 // Standart 1

// Normal shoot speed - Bazooka's rocket Speed on Normal shoot
zp_bazooka_speed 800 // Standart 1000

// Homing shoot speed - Bazooka's rocket Speed on Homing shoot
zp_bazooka_homing_speed 350 // Standart 350

// Camera shoot speed - Bazooka's rocket Speed on Camera shoot
zp_bazooka_camera_speed 300 // Standart 300

// Count - How many bazooka can hold in hand by all players
zp_bazooka_count 4 // Standart 4 

Defines:
PHP Code:

#define CUSTOM_MODEL 

- Set " // " before if you want using original half life models
PHP Code:

#define ADMIN_BAZOOKA 

- Set " // " before if you want disable free Bazooka for Admin
PHP Code:

#define BAZOOKA_ACCESS ADMIN_LEVEL_H 

- Here you can put the flag what Admin need to get free Bazooka,
it disabled if ADMIN_BAZOOKA define is disabled
Modes:
  • Normal fire mode - Normal rocket shoot like other Bazookas
  • Homing fire mode - The rocket follows enemy (Zombie|Nemesis)
  • Camera fire mode - You can control the rocket
Models & Sounds:
-If you defined custom models you need to use custom models
or the models from the rar file i uploaded and you need 1 sound
from rar file, it doesnt exist on valve "nuke_fly.wav" be sure that
it is in weapons sound folder or you can't head shoot sound
in-game.

Credits:
G-Dog - For his original Bazooka code
NiHiLaNTh - Switching thing | Help on removing engine include
abdul-rehman - Help on removing engine include

Versions:
PHP Code:

v1.0 
Released

v1.1
-Removed engine module

v1.2
-Fixed Camera thing 
-Fixed switching modes bug

v1.3
-Fixed little mistake on Admin check

v1.4
-Fixed some little mistakes
-Fixed the zp_register_extra_item compile bug
-Added engine module again for better Camera quality
-Added 2 Cvars for Homing Camera mode rocket speed

v1.5
-Removed reload message (Was bugged)
-
Added new reload bar
-Added new stock for explosion and more
-Added that Mode can only changing while holding knife
-New explosion effects Screenshake
-Fixed some little bugs with modes

v1.6
-Fixed model bug on Knife
-Fixed pick up bug 

Notes:
-If you find any Bugs report them please.
-You can easily change Cvars in the zp_bazooka_modes.cfg file
-Nuke_fly.wav sound aren't exist in cs you need to download it yourself
-Please download zp_bazooka_new_update.sma file. Thanks!

omgitsme 11-07-2010 03:59

Re: [ZP] Bazooka + New Modes
 
wow! nice, so epic :D gunna try it one day

5c0r-|3i0 11-07-2010 04:17

Re: [ZP] Bazooka + New Modes
 
@Vechta: 1st nicest thing you ever done , huh :P . [ Jokin' ] . Good job.

abdul-rehman 11-07-2010 04:20

Re: [ZP] Bazooka + New Modes
 
Nice Job My friend
But you dont need the engine include if you have included fakemeta

Instead of this:
Code:
create_entity("info_target");
You can use this
Code:
 engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));

2-Instead of this:
Code:
entity_set_int(ent, EV_INT_rendermode, 1)
You can use this:
Code:
set_pev(ent, pev_rendermode, 1)
Same goes for entity_set_vector/entity_get_vector/VelocityByAim

3-Instead of this :
Code:
attach_view(id, ent)
You can use FM's attach view function

And last
Instead of using Prethink to detect if the player pressed the fire key you can simply use FM_CmdStart forward and then check thier buttons through get_uc( UC_Handle, UC_Buttons) since it will be more effiecient and easy !!

Hope that you implement my suggestions in ur plugin

Vechta 11-07-2010 04:22

Re: [ZP] Bazooka + New Modes
 
How can i create a entity with fakemeta?

abdul-rehman 11-07-2010 04:32

Re: [ZP] Bazooka + New Modes
 
I already told you above but here is another example:
Code:
static ent ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))

And in the color chat function plzz remove this:
Code:
replace_all(msg,190,"/w","^0");// team txt
Bcoz it deosnt makes any sense !

Vechta 11-07-2010 04:45

Re: [ZP] Bazooka + New Modes
 
example of attach_view please >.<

This is right?
PHP Code:

engfuncEngFunc_SetViewidid 


abdul-rehman 11-07-2010 04:53

Re: [ZP] Bazooka + New Modes
 
Quote:

Originally Posted by Vechta (Post 1343893)
example of attach_view please >.<

This is right?
PHP Code:

engfuncEngFunc_SetViewidid 


Yep :up:

Vechta 11-07-2010 04:55

Re: [ZP] Bazooka + New Modes
 
And 1 thing more >.<

How can convert this line to fakemeta?
PHP Code:

 attach_view(entity_get_edict(entEV_ENT_owner), entity_get_edict(entEV_ENT_owner)) 

And i dont know whats the code for fakemeta i mean this one
PHP Code:

entity_get_edict 


Excalibur.007 11-07-2010 04:58

Re: [ZP] Bazooka + New Modes
 
Yes, and nice modes. Seems good.


All times are GMT -4. The time now is 16:57.

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