AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS] RealisticBulletSound(updated at 2013 2 11) (https://forums.alliedmods.net/showthread.php?t=172606)

javalia 11-23-2011 11:12

[CSS] RealisticBulletSound(updated at 2013 2 11)
 
3 Attachment(s)
<RealisticBulletSound>




Introdution

Q. what is this plugin does?
A. this plugin makes ricochet/nearmiss sound of bullet.
to make yo enemy/yoself get scary. k.

Q. isnt this pretty useless? stop making useless plugins.
A. Fxxx u.



Requirements

this plugin needs the things listed below to work:
  • SDKHooks



Installation

to install this plugin
  • put the smx file in the sourcemod/plugins folder
  • put realisticbulletsound.txt in your sourcemod/configs/realisticbulletsound/ folder
to compile this plugin manually
  • put sp file in the sourcemod/scripting folder
  • compile.



Configuration
to configurate this plugin, you need to edit two config files.
one is auto generated config file for convar of this plugin.
another one is realisticbulletsound.txt that you have placed in
sourcemod/configs/realisticbulletsound/ folder.
that txt file has comments to help you edit it.
  • to use auto generated cfg file
    • run the plugin once, then the cfg will be generated in the cfg/sourcemod folder
    • take a look at the options and change them to your preferences
    • the options you choose in the cfg will be loaded on every map change
  • cvarlist for this version
Code:

// This file was auto-generated by SourceMod (v1.5.0-dev+3773)
// ConVars for plugin "RealisticBulletSound.smx"


// bullet will make nearmiss sound if bullet has flied longer than this
// -
// Default: "256.0"
RealisticBulletSound_bulletmakesound "256.0"

// 1 for enable, 0 for disable
// -
// Default: "1"
RealisticBulletSound_enablenearmisssound "1"

// 1 for enable, 0 for disable
// -
// Default: "1"
RealisticBulletSound_enablericochetsound "0"

// positive value will make clients hear nearmiss sound even bullet didnt passed away the client.
// negative value will force the bullet to pass away client at least absolute value of this value
// -
// Default: "16.0"
RealisticBulletSound_nearmissadjust "16.0"

// distance to client from bullet line that let u hear the nearmiss sound
// -
// Default: "64.0"
RealisticBulletSound_nearmissdistance "64.0"



Known Bugs & Limits Of the Mod
  • it will make ricochet sound even bullet hits some grass or that things. i was not able to fix it, so i just added cvar to turn ricochet sound off. and it`s disabled by default.
  • rukia is not r u k i a!!!!!!!!!!!!!!!!!



Special Thanks To

i want to say thanks to these guys
  • someone whom will get interested on my plugin and test this.
  • Chamamyungsu for helping me to kill boring times.
  • cybermind for helping me on irc about math



Change Log

all the date`s format is y/m/d
Code:

update at 2013 2 11(ver 1.3.12.23)
  • added config file support for custom bullet sounds.

  • now plugin will make only one bullet nearmiss sound for one bullet.

  • now plugin needs sdkhooks to work.

  • made ricochet sound to smaller and disabled it in default.

  • improved mathematics code.

  • added new cvar RealisticBulletSound_nearmissadjust, so you need to remove old convar cfg file to use new one.

update at 2012 12 09(ver 1.2.4.11)
  • not a real update but just fixed version cvar to not recoded in cfg file anymore.

  • made a separated zip file to save 1000+ download of my old code file. haha.

update at 2011 11 29(ver 1.2.3.9)
  • added some code but i dont think it will prevent ricochet sound on glass.

update at 2011 11 29(ver 1.2.3.8)
  • changed base math codes.

  • added cvar for plugin

update at 2011 11 24(ver 1.0.0.4)
  • fixed all the wrong math codes.....i hope so.

  • removed non existing sound file from sound list

update at 2011 11 24(ver 1.0.0.2)
  • fixed wrong math code

update at 2011 11 24(ver 1.0.0.1)
  • changed code to not make ricochet soun when hited on player and water

update at 2011 11 24(ver 1.0.0.0)
  • released



DaFox 11-23-2011 11:32

Re: [CSS] RealisticBulletSound
 
All hail king javalia.

javalia 11-23-2011 11:36

Re: [CSS] RealisticBulletSound
 
Quote:

Originally Posted by DaFox (Post 1601394)
All hail king javalia.

u r count from now.

windows_hack 11-23-2011 11:59

Re: [CSS] RealisticBulletSound
 
Thank you.

Guren 11-25-2011 22:53

Re: [CSS] RealisticBulletSound
 
woooooooooooooooooow awesome

blue zebra 11-26-2011 01:06

Re: [CSS] RealisticBulletSound
 
Haha.
Thanks.
You guessed my thoughts.
I'm going to testing on CS:S.

Edit: It's fantastic. Works like a charm. Good job.
Some questions.

- Can you do to reduce these sounds to all 3-4-5-6. bullets only? Randomly. Not like now, when all bullet give a sound.
I think now is too big voice disorder.

- Can you do a !settings menu for this plugin to turn on or off these sounds?
Let the player decide what he/she want.

- You can do more realistic ingame sounds? Some randomly played background sounds?
Like these:
hl2/sound/explosions/battle_loop1.wav
hl2/sound/ambient/levels/streetwar/city_battle1
hl2/sound/ambient/levels/streetwar/city_battle4
hl2/sound/ambient/levels/streetwar/city_battle5
hl2/sound/ambient/levels/streetwar/city_battle8
hl2/sound/ambient/levels/streetwar/city_battle9
hl2/sound/ambient/levels/streetwar/heli_distant1

pr0gadget 11-28-2011 11:35

Re: [CSS] RealisticBulletSound
 
Quote:

Originally Posted by blue zebra (Post 1602716)
- Can you do to reduce these sounds to all 3-4-5-6. bullets only? Randomly. Not like now, when all bullet give a sound.
I think now is too big voice disorder.

- Can you do a !settings menu for this plugin to turn on or off these sounds?
Let the player decide what he/she want.

I agree with blue zebra - And tnx javalia for this interesting plugin, I enjoyed it:)
EDIT: I think You should also remove ricochet sounds from glass (window), wood and ground (sand). Then it should be more realistic with less sound spam ("too big voice disorder") ;)

javalia 11-28-2011 15:21

Re: [CSS] RealisticBulletSound(updated at 2011 11 29)
 
updated.
bluezebra and pr0gadget, thanks for testing my plugin.
and..answer to questions..
first, adding battle bgm like that is not intending point of my plugin.
well, maybe some other can make some BGM plugin that does that kind of works.

second, bullet sound, hm..not sure...but i made bullet sound to a bit smaller.
and also changed code so players far from bulletline will not able to hear the bullet sound. u can config it.

third, the glass and wood ricochet sound, sad but i was not able to find good way to handle this, so, instead of it, i added a cvar that on/offs ricochet sound. hehe.

templetonpeck 12-07-2011 03:49

Re: [CSS] RealisticBulletSound(updated at 2011 11 29)
 
Could you add a Config where you can define your own paths and sounds
to download and being played? I really would use some other Bullet Sounds
on my Server.

Thanxx 4 your good job on this Plugin.

javalia 01-13-2012 15:11

Re: [CSS] RealisticBulletSound(updated at 2011 11 29)
 
well, for now, i am not having any plan about adding that kind of sound configs.
but u maybe easily can edit code of this plugin. it is short and will be easy to edit...


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

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