Raised This Month: $12 Target: $400
 3% 

[Weapon] Newcomen


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-14-2017 , 16:57   [Weapon] Newcomen
Reply With Quote #1


CSO Weapon: Newcomen


A steam-operated submachine gun fed with 30 rounds of 4.6×30mm based on the H&K MP7. It is equipped with a Steam Engine that accumulates its damage for each shot and a 30-round burst as the secondary fire function.

Advantage
  • High rate of fire
  • Low recoil
  • Has burst fire mode
  • Very high damage in burst fire mode

Disadvantage
  • Low damage in normal mode
  • Long reloading time
  • Easy to run dry
  • Damage decreases over range in both modes
  • Inaccurate at long range in both modes


cmd: admin_get_newcomen

The file included 2 version, 1 for Zombie Plague (5.0) and 1 for normal with Admin command.

Change Log
  • 1.4: Release
  • 1.5.1: Fix & Optimized

If you have any problem, please let me know and I will fix it ^^
Attached Files
File Type: zip Weapon.Newcomen.v1.5.1.zip (879.8 KB, 155 views)

Last edited by Celena Luna; 06-19-2017 at 06:59.
Celena Luna is offline
kristi
Senior Member
Join Date: Nov 2016
Old 06-16-2017 , 06:18   Re: [Weapon] Newcomen
Reply With Quote #2

Remove the .amxx file, it is not allowed to upload compiled plugins here.
kristi is offline
Send a message via Skype™ to kristi
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 06-16-2017 , 10:52   Re: [Weapon] Newcomen
Reply With Quote #3

Nice Job!
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-16-2017 , 18:37   Re: [Weapon] Newcomen
Reply With Quote #4

PHP Code:
public fw_TraceAttack_World(VictimAttackerFloat:DamageFloat:Direction[3], PtrDamageBits)
{
    if(!
is_user_connected(Attacker)) // this check is unnecessary.
        
return HAM_IGNORED    
    
if(get_user_weapon(Attacker) != CSW_MP5NAVY || !g_has_newcomen[Attacker])
        return 
HAM_IGNORED
        
    
static Float:flEnd[3], Float:vecPlane[3]
        
    
get_tr2(PtrTR_vecEndPosflEnd)
    
get_tr2(PtrTR_vecPlaneNormalvecPlane)      //this is not used so its useless.    
            
    
Make_BulletHole(AttackerflEndDamage)
    
    
SetHamParamFloat(3float(DAMAGE))
    
    return 
HAM_HANDLED

I checked the code it does need some optimization. Like use either is user alive or is user connected dont use both of them in the same check.

Use ham item deploy forward instead of hooking curweapon event its better.

And the video is not available.

Heres the correct link
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-17-2017 at 07:35.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
iclassdon
AlliedModders Donor
Join Date: May 2006
Old 06-16-2017 , 19:09   Re: [Weapon] Newcomen
Reply With Quote #5

Nice Job !
iclassdon is offline
Send a message via MSN to iclassdon
NITRO_GOD
Member
Join Date: Mar 2017
Location: De_dust2
Old 06-17-2017 , 07:36   Re: [Weapon] Newcomen
Reply With Quote #6

Gj Luna

PS:
Quote:
Modification: ALL Category: Admin Commands
Quote:
Modification: Counter-Strike Category: Gameplay
__________________
My Work in zppv [RaDNoX] http://zppv.boards.net/thread/2562/m...tems-zp-radnox

Join zppv for help in Zombie Plague!
NITRO_GOD is offline
Send a message via Skype™ to NITRO_GOD
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-18-2017 , 11:11   Re: [Weapon] Newcomen
Reply With Quote #7

@Natsheh Thank you ^^
I optimized it and remove parts that unnecessary ^^

Last edited by Celena Luna; 06-18-2017 at 11:11.
Celena Luna is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-19-2017 , 01:56   Re: [Weapon] Newcomen
Reply With Quote #8

Quote:
Originally Posted by Celena Luna View Post
@Natsheh Thank you ^^
I optimized it and remove parts that unnecessary ^^
Youre welcomed.

1 problem you forgot to remove ths hook

register_event("CurWeapon","CurrentWeapon","b e","1=1")

Also a bug in death function
PHP Code:
public Death(id)   // theres no parameters are passed here
{
    new 
victim read_data(2

    if(!
g_has_newcomen[victim])// this must be if positive set to false, or you can set it directly false without a check.
        
g_has_newcomen[victim] = false

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 06-19-2017 at 05:37.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-19-2017 , 06:57   Re: [Weapon] Newcomen
Reply With Quote #9

Quote:
Originally Posted by Natsheh View Post
Youre welcomed.

1 problem you forgot to remove ths hook

register_event("CurWeapon","CurrentWeapon","b e","1=1")

Also a bug in death function
PHP Code:
public Death(id)   // theres no parameters are passed here
{
    new 
victim read_data(2

    if(!
g_has_newcomen[victim])// this must be if positive set to false, or you can set it directly false without a check.
        
g_has_newcomen[victim] = false

Silly me :<
Fixed and Updated

Last edited by Celena Luna; 06-19-2017 at 06:59.
Celena Luna 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 07:34.


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