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

Throw rock/stone for cs 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AG ATT kool
Junior Member
Join Date: Dec 2017
Location: Algeria
Old 03-30-2018 , 16:45   Throw rock/stone for cs 1.6
Reply With Quote #1

Hello all,
I'd like to ask you to make a plugin for me which is "Throwing stone" like grenades. Players can find stones dropped around the map, and they're able to pick it up and throw it on others When the stone hits a player it causes some damage ( depending on cvar ). I'll use the models v_stone, w_stone and p_stone, and the sound injury.wav.
PS: I have the resources and I need only the plugin.
The plugin is for Counter-Strike 1.6.
Thanks in advance.
AG ATT kool is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-31-2018 , 03:02   Re: Throw rock/stone for cs 1.6
Reply With Quote #2

So if you do not provide the resources how are we gonna do the plugin?
__________________
HamletEagle is offline
CookieCrumbler
Senior Member
Join Date: Feb 2013
Location: Australia
Old 03-31-2018 , 11:01   Re: Throw rock/stone for cs 1.6
Reply With Quote #3

You can use this plugin to block fire in the hole textMsg and radioMsg
https://forums.alliedmods.net/showthread.php?t=54110


You can try use this to modify the Grenade damage. It will also stop damage being inflicted on the attacker from the blast radius.
PHP Code:
#include <amxmodx>
#include <hamsandwich>

const DMG_NADE = (1<<24)

public 
plugin_init()
{
    
register_plugin"No Self-Nade + Damage""1.1""Wrecked" )
    
    
RegisterHamHam_TakeDamage"player""HamTakeDamagePre")
}

public 
HamTakeDamagePrevicinfattFloat:dmgdmgbits )
{
    if( 
dmgbits DMG_NADE )
    {
        if( 
vic == att )
            return 
HAM_SUPERCEDE;
            
        new 
Float:newdmg dmg // use this variable to change the dmg
        
        
SetHamParamFloat4newdmg )
    }
    
    return 
HAM_IGNORED;


And you can use Hamlets Resources Editor in his signature, to edit the w_ p_ v_ models , sprites and the explosion sound that are used by HE Grenades but it requires you to use orpheu.

The models can be done by way of a plugin as well but its always better to use memory patching with orphue if you can.
__________________
--------------------------------------------------
C is for cookie ... thats good enuff 4 me

Last edited by CookieCrumbler; 03-31-2018 at 11:08.
CookieCrumbler is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-31-2018 , 15:54   Re: Throw rock/stone for cs 1.6
Reply With Quote #4

Another way would be to edit my throwable c4 plugin. Give it a bigger velocity and remove the condition to be in bomb zone. It should do exactly what op's asking for.
__________________
HamletEagle 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 04:01.


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