Raised This Month: $ Target: $400
 0% 

[REQ]$ Grenade skills with powerups for DOD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 01-27-2010 , 15:51   [REQ]$ Grenade skills with powerups for DOD
Reply With Quote #1

In dod you can knock the helmets off players with grenades.

#1: Can someone create a plugin that will add tracers to the grenade in the form of team colors.
Nice job Connor. the tracers are way cool, but Tracers do not work for the Allies

#2: Make the grenade glow in team colors.

#3: Add a visual "time left" counter for the player seeing the grenade, so they might toss it back. grenades have 5 seconds in dod before exploding. Maybe allow the player to look near the grenade with their cross hair and see how much time on the grenade is left before exploding, or if it's doable, place a timer on their screen that shows the count down. This would have to be in proximity of the nearest grenade so the player wasn't seeing every grenade timer on the map. Hehehe

#4:The plugin should be able detect the player who tossed the grenade, and if that grenade hit one of the enemy in the head, that grenade's blast radius would be twice that of a normal grenade, and with extra blast effects.

#5: when a player hits an enemy in the head with a grenade, the butt smack sound should play and the thrower is labeled "a grenade master", and given three more grenades and their HP is now at 200% with unlimited stamina.

[NOTE] You will want to add some sort of blocker, so this cannot be achieved unless the grenade is thrown from a certain distance or people will be exploiting it, and wacking each other over the head for the benefits they will get.

[Note] some players get their helmets knocked off just by being too close to a grenade or by having it shot off. I also run tackle mod and that can knock their helmets off as well. is there a way to stop that from happening so that the plugins features would work independently of those other actions so they don't conflict with this plugins features ?

If possible, all things should be configurable by cvars.

#1: Enable/disable the plugin <1|0>
#2: Allow extra grenade blast effects.
#3: Allow Helmet hit benefits
#4: Allow helmet knocked off benefits
#5: Set Stamina amount when a helmet is hit
#6: Set the amount of time the player gets the benefits.
#7: Enable/disable grenade countdown timer.


will paypal.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.

Last edited by MAUGHOLD; 06-13-2011 at 20:59. Reason: re sudo coding
MAUGHOLD is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 03-27-2011 , 21:52   Re: [REQ]$ Grenade skills with powerups for DOD
Reply With Quote #2

I thought I would bump this since its been forever and I re'sudo coded it to make it more specific. can anyone code this ?
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-28-2011 , 02:46   Re: [REQ]$ Grenade skills with powerups for DOD
Reply With Quote #3

Can you try if this is working on dod ?

PHP Code:
#include <amxmodx> 
#include <fakemeta> 
#include <hamsandwich> 

#define VERSION "0.0.2" 

#define ALLIES            1
#define AXIS             2

new g_iMaxPlayers
#define IsPlayer(%1)    ( 1 <= %1 <= g_iMaxPlayers )

new g_iTrailSprite 

new g_pCvarGlowColor[2], g_pCvarTrailColor[2]

new 
HamHook:g_iHhNadeThink

public plugin_init() 

    
register_plugin("Dod Grenade Trails"VERSION"ConnorMcLeod"

    
g_pCvarGlowColor[0] = register_cvar("amx_dod_nade_glow_allies""000000250")
    
g_pCvarGlowColor[0] = register_cvar("amx_dod_nade_glow_axies""250000000")
    
g_pCvarTrailColor[0] = register_cvar("amx_dod_nade_trail_allies""000000250")
    
g_pCvarTrailColor[0] = register_cvar("amx_dod_nade_trail_axies""250000000")

    
RegisterHam(Ham_Spawn"grenade""Grenade_Spawn"1)
    
DisableHamForwardg_iHhNadeThink RegisterHam(Ham_Think"grenade""Grenade_Think"1) )
    
g_iMaxPlayers get_maxplayers()


public 
plugin_precache() 

    
g_iTrailSprite precache_model("sprites/smoke.spr"


public 
Grenade_SpawniEnt 
{
    
EnableHamForwardg_iHhNadeThink )
}

public 
Grenade_Think(iEnt)
{
    
DisableHamForwardg_iHhNadeThink )
    new 
iOwner pev(iEntpev_owner)
    if( !
IsPlayer(iOwner) )
    {
        return
    }

    new 
iTeam get_user_team(iOwner)
    if( !(
ALLIES <= iTeam <= AXIS) )
    {
        return
    }

    new 
iColor[3]

    
iColor get_cvar_colorg_pCvarTrailColor[iTeam-1] )
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY
    
write_byte(TE_BEAMFOLLOW
    
write_short(iEnt
    
write_short(g_iTrailSprite
    
write_byte(6
    
write_byte(10
    
write_byte(iColor[0]) 
    
write_byte(iColor[1]) 
    
write_byte(iColor[2]) 
    
write_byte(192
    
message_end()

    
iColor get_cvar_colorg_pCvarGlowColor[iTeam-1] )
    new 
Float:fVecColor[3]
    
IVecFVec(iColorfVecColor)
    
Util_SetRendering(iEntkRenderFxGlowShellfVecColor_20.0)
}

get_cvar_colorg_pCvar )
{
    new 
Color[3]

    new 
iTemp get_pcvar_num(g_pCvar)
    
Color[0] = iTemp 1000000
    iTemp 
%= 1000000
    Color
[1] = iTemp 1000
    Color
[2] = iTemp 1000

    
return Color
}  

Util_SetRendering(iEntitykRenderFx=kRenderFxNone, {Float,_}:fVecColor[3] = {0.0,0.0,0.0}, kRender=kRenderNormalFloat:flAmount=0.0)
{
    
set_pev(iEntitypev_renderfxkRenderFx)
    
set_pev(iEntitypev_rendercolorFloat:fVecColor)
    
set_pev(iEntitypev_rendermodekRender)
    
set_pev(iEntitypev_renderamtflAmount)

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-28-2011 at 13:52.
ConnorMcLeod is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 03-29-2011 , 03:46   Re: [REQ]$ Grenade skills with powerups for DOD
Reply With Quote #4

yes, I will test in the morning and post back.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 06-13-2011 , 21:01   Re: [REQ]$ Grenade skills with powerups for DOD
Reply With Quote #5

It's running but the tracers do not work for allies.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.

Last edited by MAUGHOLD; 06-13-2011 at 22:18.
MAUGHOLD is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-14-2011 , 01:15   Re: [REQ]$ Grenade skills with powerups for DOD
Reply With Quote #6

Well, i'm sorry i can't directly test the plugin, so would be better if someone that knows dod better would try to fix it.
Also, i don't want to waste time for other feature, don't even know if all are possible and multiple nades for example would be difficult to manage for #3
#5 could be an easy one though.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
MAUGHOLD
Veteran Member
Join Date: Nov 2004
Location: CA USA
Old 06-14-2011 , 02:37   Re: [REQ]$ Grenade skills with powerups for DOD
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Well, i'm sorry i can't directly test the plugin, so would be better if someone that knows dod better would try to fix it.
Also, i don't want to waste time for other feature, don't even know if all are possible and multiple nades for example would be difficult to manage for #3
#5 could be an easy one though.
Okay thanks.
__________________
{FJ}Justice STEAM_0:0:633975 If anyone needs any help with their server, Just add me to steam friends and I'll help you out.
MAUGHOLD is offline
Old 06-14-2011, 03:40
Shadymn
This message has been deleted by Exolent[jNr]. Reason: Random spam.
Reply



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 11:01.


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