AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Extra Item: Antidote Laser v1.1 (https://forums.alliedmods.net/showthread.php?t=96895)

ILUSION 07-10-2009 05:45

[ZP] Extra Item: Antidote Laser v1.1
 
10 Attachment(s)
You have 3 shots, you can use they with the "use" button. If you are aiming a zombie and press the "use" button the zombie come human and you obtained X ammo packs and X frags.

The amount of frags and ammo packs has been set by these cvars:

zp_human_frags_for_kill
zp_zombie_infect_reward

Cvars:
zp_laser_shots - Sets the max amount of shots

Changelog:
Quote:

v1.0 - First release.
v1.1 - Added ML Support (Thanks crazyeffect !)
Translations:
Code:

[en] ILUSION
[es] ILUSION
[nl] crazyeffect

Screenshots:
[IMG]http://img23.**************/img23/8942/88776524.th.jpg[/IMG] [IMG]http://img141.**************/img141/5785/48146208.th.jpg[/IMG] [IMG]http://img269.**************/img269/5512/59962295.th.jpg[/IMG]

Sorry for my english :oops:

padilha007 07-10-2009 09:53

Re: [ZP] Extra Item: Antidote Laser
 
good work.

Xellath 07-10-2009 10:36

Re: [ZP] Extra Item: Antidote Laser
 
Good job.

I think you should rename the actions and bools in the code, looks spanish. Not that there is anything wrong with spanish, but english is more appropriate in this community.

ILUSION 07-10-2009 10:53

Re: [ZP] Extra Item: Antidote Laser
 
Quote:

Originally Posted by padilha007 (Post 868905)
good work.

Quote:

Originally Posted by Xellath (Post 868933)
Good job.

Thanks :)

Quote:

Originally Posted by Xellath (Post 868933)
I think you should rename the actions and bools in the code, looks spanish. Not that there is anything wrong with spanish, but english is more appropriate in this community.

Is spanish. Done. :mrgreen:

xPaw 07-10-2009 11:06

Re: [ZP] Extra Item: Antidote Laser
 
PHP Code:

stock fm_set_user_deaths(idvalue)
{
    
set_pdata_int(idOFFSET_CSDEATHSvalueOFFSET_LINUX)
}

stock fm_get_user_deaths(id)
{
    return 
get_pdata_int(idOFFSET_CSDEATHSOFFSET_LINUX);
}

stock fm_get_user_team(id)
{
    return 
get_pdata_int(idOFFSET_CSTEAMSOFFSET_LINUX);


Use natives from cstrike

ILUSION 07-10-2009 22:48

Re: [ZP] Extra Item: Antidote Laser
 
Quote:

Originally Posted by xPaw (Post 868956)
PHP Code:

stock fm_set_user_deaths(idvalue)
{
    
set_pdata_int(idOFFSET_CSDEATHSvalueOFFSET_LINUX)
}

stock fm_get_user_deaths(id)
{
    return 
get_pdata_int(idOFFSET_CSDEATHSOFFSET_LINUX);
}

stock fm_get_user_team(id)
{
    return 
get_pdata_int(idOFFSET_CSTEAMSOFFSET_LINUX);


Use natives from cstrike

Done. Files updated.

tuty 07-11-2009 12:30

Re: [ZP] Extra Item: Antidote Laser
 
PHP Code:

engfunc(EngFunc_EmitSound

use

PHP Code:

emit_sound 

PHP Code:

message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(27)
    
write_coord(origin[0]) // x
    
write_coord(origin[1]) // y
    
write_coord(origin[2]) // z
    
write_byte(40
    
write_byte(0// r
    
write_byte(128// g
    
write_byte(255// b
    
write_byte(100)
    
write_byte(10)
    
write_byte(1)
    
message_end()

    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(0)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(14)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 

to :arrow:

PHP Code:

   message_beginMSG_PVSSVC_TEMPENTITYorigin )
   
write_byte(TE_DLIGHT)
   
write_coord(origin[0]) // x
   
write_coord(origin[1]) // y
   
write_coord(origin[2]) // z
   
write_byte(40
   
write_byte(0// r
   
write_byte(128// g
   
write_byte(255// b
   
write_byte(100)
   
write_byte(10)
   
write_byte(1)
   
message_end()

    
message_begin(MSG_PVSSVC_TEMPENTITY)
    
write_byte(TE_BEAMPOINTS)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
    
write_byte(TE_IMPLOSION)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 


alias_retaer 07-11-2009 13:09

Re: [ZP] Extra Item: Antidote Laser
 
nice :)

Starsailor 07-11-2009 13:16

Re: [ZP] Extra Item: Antidote Laser
 
PHP Code:

shots register_cvar("zp_tiros_laser""3"

---->

PHP Code:

shots register_cvar("zp_laser_shoots""3"

Like Xellath said, english is more appropriate in this community

ILUSION 07-12-2009 04:45

Re: [ZP] Extra Item: Antidote Laser
 
Quote:

Originally Posted by tuty (Post 869804)
PHP Code:

engfunc(EngFunc_EmitSound

use

PHP Code:

emit_sound 

PHP Code:

message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(27)
    
write_coord(origin[0]) // x
    
write_coord(origin[1]) // y
    
write_coord(origin[2]) // z
    
write_byte(40
    
write_byte(0// r
    
write_byte(128// g
    
write_byte(255// b
    
write_byte(100)
    
write_byte(10)
    
write_byte(1)
    
message_end()

    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(0)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(14)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 

to :arrow:

PHP Code:

   message_beginMSG_PVSSVC_TEMPENTITYorigin )
   
write_byte(TE_DLIGHT)
   
write_coord(origin[0]) // x
   
write_coord(origin[1]) // y
   
write_coord(origin[2]) // z
   
write_byte(40
   
write_byte(0// r
   
write_byte(128// g
   
write_byte(255// b
   
write_byte(100)
   
write_byte(10)
   
write_byte(1)
   
message_end()

    
message_begin(MSG_PVSSVC_TEMPENTITY)
    
write_byte(TE_BEAMPOINTS)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
    
write_byte(TE_IMPLOSION)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 


No. In Zombie Plague "emit_sound" function has no effect.

btw: all ready.


All times are GMT -4. The time now is 07:09.

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