Rules FAQ Members List Search Register Login

 Raised This Month: \$115 Target: \$400 28%

VoivoDpl
Junior Member
Join Date: Apr 2017
09-14-2018 , 15:45   Re: Bullet Speed Management
#21

Quote:
 Originally Posted by EFFx Yeah, when I reload the thread I thought about that way... Lemme ask you a question, how would you suggest to manage the damage when the bullet gets through a wall? Like damage / times_that_the_bullet_gets_through_the_wall?
To do this accurately one must know:
Weapon base damage, Texture(type of a wall), ammo type penetration(this can be researched on youtube since there are tons of movies about ammo penetration), distance.

For example you hit wall with texture duct_XXX. So you've hit a ventilation shaft. We are gonna ignore thickness to real life comparison cause vent on cs_assault is simplified for editing(and it's quite thick). We can even do multiple wallshots since awp ammo could propably penetrate like 10 or more thin vent metal plates.

Let's simplify walls, group them into two groups where one only checks if the bullet reached max penetration length and the other checks penetration length, give them damage reduction points:

This is DR per penetration, piercing ammo type divides this by 2, also we must add max penetration(8 or 16 game units/inches):
wooden door 20
metal door 35
metal plate 45
ventilation 15

This is DR per inch of penetration, piercing ammo type divides this by 2:
concrete wall 7-15(i'm not sure, but I think we should pick a number from this range)
wooden wall 7-15
dirt 7-15

impenetrable:
metal wall
thick metal door
everything else

Distance:
lets say normal ammo distance check looks like this:
Code:
```damage *= (3000.0 - distance) / 3000.0
piercing:
damage *= (6000.0 - distance) / 6000.0
shotgun:
damage *= (1500.0 - distance) / 1500.0```
example:
AK47 through wooden door, distance 1000u:
Code:
```36 * 0.84 - (20 / 2) = ~ 20 damage
(weapon base damage * distance modifier - (damage reduction from penetration / 2 because ammo is piercing)```
example2:
AK47 through 3 units thick concrete wall, distance 2000u:
Code:
```36 * 0.66 - ( (15 / 2) * 3) = 1.26 damage
(bullet HP * distance modifier - ((damage reduction from penetration / 2 because ammo is piercing) * 3 inches)```
When fired bullet starts with it's base weapon damage as HP number and with each penetration the bullets HP decreases. When it reaches 0 it's removed from the game.
Texture names and wall types should be listed in a config file, also the plugin should support debug mode where it displays texture name on screen where the player is aiming.

Phew...

Last edited by VoivoDpl; 09-14-2018 at 15:46.
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
 12-27-2018 , 01:08   Re: Bullet Speed Management #22 It's been 3 months and I'm still getting my mind blown everytime I try to read this... __________________ • BattleRoyale Mod • Public PugMod • Furien Mod - Currently working on Thanos vs. Avengers: 15%
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
 03-22-2019 , 23:48   Re: Bullet Speed Management #23 Updated to v1.3: open spoiler below Spoiler . Fixed takedamage code. . Added more FL_GODMODE and DAMAGE_NO support. . Added a check to see if the victim is attacker's teammate and FFA is 1. . Added new check to lose accuracy: AWP/Scout without the zoom. . Changed distanceToGround() to FL_ONGROUND. . Moved bleedPlayer() from forward_Touch to takeDamage(). . Optimized a little. . Changed set_user_health() to Ham_TakeDamage. . Fixed Shotgun damage. __________________ • BattleRoyale Mod • Public PugMod • Furien Mod - Currently working on Thanos vs. Avengers: 15%
DJEarthQuake
Senior Member
Join Date: Jan 2014
Location: Midwest
 05-06-2019 , 22:16   Re: Bullet Speed Management #24 @EFFx. Thank you for the custom version. __________________ "It's not the actual programming that's interesting. But it's what you can accomplish with the end results that are important." -Dennis Ritchie "Mathematics, rightly viewed, possesses not only truth, but supreme beauty — a beauty cold and austere, like that of sculpture..." -Bertrand Russell
pakgamerz
AlliedModders Donor
Join Date: Aug 2017
Location: Karachi
 09-05-2019 , 14:33   Re: Bullet Speed Management #25 how to fix this? ] amx_cvar slowbullet_show_damage [AMXX] Unknown cvar: slowbullet_show_damage
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
 09-05-2019 , 19:10   Re: Bullet Speed Management #26 I've removed the hud damage displayment on the v1.3 update. Just to let someone who wants to know, i'm currently working on bullet penetration, it could take too long because i'm currently no longer with free time to work on such hard thing, but i'm trying my best to. __________________ • BattleRoyale Mod • Public PugMod • Furien Mod - Currently working on Thanos vs. Avengers: 15% Last edited by EFFx; 09-05-2019 at 19:12.

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Server Discussion     Source Servers (SRCDS)     HL1 Servers (HLDS) AMX Mod X     News     Bug Reports     General     Off-Topic     Plugins         Suggestions / Requests         Approved Plugins         New Plugin Submissions         Unapproved/Old Plugins         Translation Request         High-Traffic Plugins             GunGame             UAIO (Ultimate All-In-One Plugin)             xREDIRECT             CSDM             AMX Super             RuneMod             Zombie Plague Mod             SuperHero Mod                 News                 Tech Support                 Scripting Help                 Off-Topic / General Chat                 Heroes                     Suggestions / Requests                     Approved Heroes                     New Submissions                     Unapproved/Old Heroes                         Module Heroes                     SuperHero Mod Stats - By 123                 (OLD) Bug Reports     Scripting         Scripting Help         Code Snippets/Tutorials         Module Coding     Donor Access SourceMod     News     General     Plugins         Plugins         Unapproved Plugins         Plugin/Gameplay Ideas and Requests         High-Traffic Plugins             SourceMod Anti-Cheat             Zombie:Reloaded             SourceBans             VSH / Freak Fortress             Store             SM_Hosties             HLstatsX:CE     Scripting     Extensions     Snippets and Tutorials     Donor Access     Metamod: Source         Metamod:Source Plugins         Metamod:Source Questions         Coding MM:S Plugins & SM Extensions Hosted Stuff     Asherkin's Plugins         TF2Items         TFDodgeball         SteamTools     Bail's Plugins         CSDM         CS:S DM Off-Topic & Trash     Off-Topic     Trash

All times are GMT -4. The time now is 14:27.

 DMCA - Archive - Top