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

Half-Life | No Wall Gauss


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Half-Life        Category:   Gameplay       
kml_ghost
Junior Member
Join Date: May 2018
Location: Türkiye
Old 01-20-2024 , 10:51   Half-Life | No Wall Gauss
Reply With Quote #1

Description;
Turns on/off gauss damage taken from walls

Cvar;
sv_wallgauss 1-damage on / 0-damage off
Attached Files
File Type: sma Get Plugin or Get Source (no_wallgauss.sma - 61 views - 1.0 KB)
__________________
discord: zorbakemal
instagram: hl.iletisim

Last edited by kml_ghost; 01-24-2024 at 08:53. Reason: amxx file
kml_ghost is offline
Mo3taz
Member
Join Date: Apr 2022
Location: Algeria
Old 01-21-2024 , 12:38   Re: Half-Life | No Wall Gauss
Reply With Quote #2

amxx file is not allowed
just put the sma and it will be compiled
__________________
Save Money (nvault)
DISCORD: Mo3taz#8978
Mz
Mo3taz is offline
Send a message via Yahoo to Mo3taz
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 01-23-2024 , 17:05   Re: Half-Life | No Wall Gauss
Reply With Quote #3

I saw the word 'useless' in the function prototype. Check it out. Falling damage is worldspawn. Crossbow will show as bolt, etc. Gauss will always be a client index. Just supplying some useless information. Haven't tested your work yet. Maybe add a vote to enable disable your plugin since if one cannot wallbang that spoils the fun factor by and large.

Code:
#include amxmodx #include fakemeta #include hamsandwich public plugin_init() {     register_plugin("Inflictor Test","1.0.0","SPiNX")     RegisterHam(Ham_TakeDamage, "player", "Event_Damage", 1); } public Event_Damage(victim, inflictor, attacker, Float:damage, damagebits) {     static szClass[MAX_NAME_LENGTH];     pev(inflictor, pev_classname, szClass, charsmax(szClass))     client_print 0, print_center, "%s", szClass }
__________________
DJEarthQuake is offline
kml_ghost
Junior Member
Join Date: May 2018
Location: Türkiye
Old 01-24-2024 , 01:18   Re: Half-Life | No Wall Gauss
Reply With Quote #4

Quote:
Originally Posted by DJEarthQuake View Post
I saw the word 'useless' in the function prototype. Check it out. Falling damage is worldspawn. Crossbow will show as bolt, etc. Gauss will always be a client index. Just supplying some useless information. Haven't tested your work yet. Maybe add a vote to enable disable your plugin since if one cannot wallbang that spoils the fun factor by and large.

Code:
#include amxmodx #include fakemeta #include hamsandwich public plugin_init() {     register_plugin("Inflictor Test","1.0.0","SPiNX")     RegisterHam(Ham_TakeDamage, "player", "Event_Damage", 1); } public Event_Damage(victim, inflictor, attacker, Float:damage, damagebits) {     static szClass[MAX_NAME_LENGTH];     pev(inflictor, pev_classname, szClass, charsmax(szClass))     client_print 0, print_center, "%s", szClass }
The plugin has been tested, the function will ignore weapons other than Gauss. Gauss index=9 -> Please check line 36, thx.
__________________
discord: zorbakemal
instagram: hl.iletisim
kml_ghost is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 01-24-2024 , 07:20   Re: Half-Life | No Wall Gauss
Reply With Quote #5

Too hard-coded!
Use the define.
#define HLW_GAUSS 9
Code:
//if(!gUserWeapon || gUserWeapon != 9)

if(!gUserWeapon || gUserWeapon != HLW_GAUSS)
__________________
DJEarthQuake is offline
anssik
Senior Member
Join Date: May 2006
Location: Suomi Finland Perkele
Old 02-01-2024 , 02:21   Re: Half-Life | No Wall Gauss
Reply With Quote #6

Thanks for this.

What I was looking for though was to prevent self-damage from gauss, so riffing on your plugin here's one which does just that but does not prevent damage to enemies.
Attached Files
File Type: sma Get Plugin or Get Source (no_selfgauss.sma - 25 views - 819 Bytes)
__________________

Last edited by anssik; 02-02-2024 at 17:50.
anssik is offline
kml_ghost
Junior Member
Join Date: May 2018
Location: Türkiye
Old 02-01-2024 , 16:46   Re: Half-Life | No Wall Gauss
Reply With Quote #7

Quote:
Originally Posted by anssik View Post
Thanks for this.

What I was looking for though was to prevent self-damage from gauss, so riffing on your plugin here's one which does just that but does not prevent damage to enemies.
Great selfgauss idea thanks.
__________________
discord: zorbakemal
instagram: hl.iletisim
kml_ghost is offline
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 05:44.


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