Raised This Month: $ Target: $400
 0% 

Variable Friendly Fire


Post New Thread Reply   
 
Thread Tools Display Modes
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-09-2010 , 01:01   Re: Variable Friendly Fire
Reply With Quote #71

Quote:
Originally Posted by schmurgel1983 View Post
hi Doc-Holiday
sry.......
Code:
SetHamParamFloat(4, (damage * 3 ) * floatclamp(get_pcvar_float(dmg_reducer), 0.0, 1.0));
the harm in a teamattack is not divided by 3... the exact charge is 2.86
How did you figure that out? lol Will look into that.

Quote:
Originally Posted by Rolo View Post
Hi again,

I forgot to say that I "think" I've got uncommented all the necessary plugins that come commented by defaut in AmxModx...

Regards,
Rolo

All has been updated in the first post.

For some reason the NextMap.sma was not downloading correctly. Please just download the .zip and use the files from there.

Thank you for pointing that out so i could get it fixed

Last edited by Doc-Holiday; 04-09-2010 at 01:08.
Doc-Holiday is offline
Rolo
Junior Member
Join Date: Dec 2008
Old 04-09-2010 , 04:12   Re: Variable Friendly Fire
Reply With Quote #72

Hi Doc,

I will use your new zip in order to test it!

Do I need for sure to "substitute" the original AmxModX nexmap.amxx with the one in the zip file to make the variable_friendlyfire to work or is just to avoid the "ff" return value bug?

What was I doing wrong according to my nearly last post?

Thanks again,
Rolo
Rolo is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-09-2010 , 04:20   Re: Variable Friendly Fire
Reply With Quote #73

The nextmap.amxx is to fix the ff bug.. It displays Friendly Fire is Off when in reality it is on.

So with what i changed works 100%.


If you don't mind it saying off when its actually on then all you need is the amxx file from the main post. for that one you can use get plugin for.

Then just stick that into your plugins folder and add the name including the .amxx extension to your plugins.ini file.

I am running it on all my servers i will pm you an ip to my test server. The bots are stopped so just shoot one of them and you can see the difference in damage.

My Plugins.ini on my test server.
Code:
; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx        ; admin base (required for any admin-related)
;admin_sql.amxx        ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx        ; basic admin console commands
adminhelp.amxx        ; help command for admin console commands
adminslots.amxx        ; slot reservation
multilingual.amxx    ; Multi-Lingual management

; Menus
menufront.amxx        ; front-end for admin menus
cmdmenu.amxx        ; command menu (speech, settings)
plmenu.amxx        ; players menu (kick, ban, client cmds.)
;telemenu.amxx        ; teleport menu (Fun Module required!)
mapsmenu.amxx        ; maps menu (vote, changelevel)
pluginmenu.amxx        ; Menus for commands/cvars organized by plugin

; Chat / Messages
adminchat.amxx        ; console chat commands
antiflood.amxx        ; prevent clients from chat-flooding the server
scrollmsg.amxx        ; displays a scrolling message
imessage.amxx        ; displays information messages
adminvote.amxx        ; vote commands

; Map related
nextmap.amxx        ; displays next map in mapcycle
mapchooser.amxx        ; allows to vote for next map
timeleft.amxx        ; displays time left on map

; Configuration
pausecfg.amxx        ; allows to pause and unpause some plugins
statscfg.amxx        ; allows to manage stats plugins via menu and commands

; Counter-Strike
;restmenu.amxx        ; restrict weapons menu
statsx.amxx        ; stats on death or round end (CSX Module required!)
;miscstats.amxx        ; bunch of events announcement for Counter-Strike
;stats_logging.amxx    ; weapons stats logging (CSX Module required!)

variable-friendly.amxx

Last edited by Doc-Holiday; 04-09-2010 at 04:24.
Doc-Holiday is offline
Rolo
Junior Member
Join Date: Dec 2008
Old 04-09-2010 , 04:57   Re: Variable Friendly Fire
Reply With Quote #74

Hi Doc,

My only difference is that in my plugin.ini file I have

;miscstats.amxx ; bunch of events announcement for Counter-Strike
;stats_logging.amxx ; weapons stats logging (CSX Module required!)

uncommented (with no ";" )

and I needed for statistical reasons.

I will test it again and connect to your test server but unfortunately I'm not in my game-computer now so I have to wait till return home

Regards,
Rolo
Rolo is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 04-09-2010 , 06:48   Re: Variable Friendly Fire
Reply With Quote #75

Quote:
Originally Posted by Doc-Holiday View Post
How did you figure that out? lol Will look into that.
2.86 is not quite correct value, it is maybe 2.864516 ^^
the value varies between 2.864516 and 2.927863 while it is always depends, of which distance you do shoot with awp.
quite different because the m4a1 is worth doing between 2.866666 and 2.875000 while it is on it again to which hitgroup you take.
but 3.0 is definitely too high.
Attached Files
File Type: sma Get Plugin or Get Source (damage_test.sma - 583 views - 2.4 KB)
File Type: txt awp_damage_test.txt (370 Bytes, 195 views)
File Type: txt m4a1_damage_test.txt (402 Bytes, 211 views)
File Type: sma Get Plugin or Get Source (damage_test2.sma - 579 views - 2.2 KB)
__________________

Working on:
nothing

Last edited by schmurgel1983; 04-09-2010 at 06:57.
schmurgel1983 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-09-2010 , 19:29   Re: Variable Friendly Fire
Reply With Quote #76

Quote:
Originally Posted by schmurgel1983 View Post
2.86 is not quite correct value, it is maybe 2.864516 ^^
the value varies between 2.864516 and 2.927863 while it is always depends, of which distance you do shoot with awp.
quite different because the m4a1 is worth doing between 2.866666 and 2.875000 while it is on it again to which hitgroup you take.
but 3.0 is definitely too high.

thank you i will look into it
Doc-Holiday is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-10-2010 , 01:35   Re: Variable Friendly Fire
Reply With Quote #77

Updated to version 1.7

Fixed the value and gave credit to you in first post.
Doc-Holiday is offline
wisam187
Senior Member
Join Date: Jan 2011
Location: In My Own World
Old 01-28-2011 , 05:19   Re: Variable Friendly Fire
Reply With Quote #78

this plugin will prevent lots of problems on my server.... thx a lot.
__________________
If you fail to plan..... you plan to fail.

the real mistake is the one which we dont learn from it
wisam187 is offline
leifont
Member
Join Date: Aug 2008
Old 01-31-2011 , 11:23   Re: Variable Friendly Fire
Reply With Quote #79

Hi Doc, nice plugin . Two questions.
  1. 2.86 is the value (aprox) so shooting teammates makes same damage as shooting enemies?
  2. Is there any way to remove the XX attacked a teammate message?
I really like having friendly fire on my servers and this plugin "fixes" the issue that shooting any people should be the same. Last thing to do is removing that message.
__________________
Please be patient, my english is good.
good karma is accepted
leifont is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 01-31-2011 , 11:58   Re: Variable Friendly Fire
Reply With Quote #80

1. why 2.86? and yes with 2.86 u made 99% same dmg on teammate (not awp)
like u are shooting on a enemie
2. hook teamattack / kill message
__________________

Working on:
nothing
schmurgel1983 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 20:02.


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