Official Soldat Forums
Server Talk => Scripting Releases => Topic started by: Gizd on May 30, 2010, 09:45:39 am
-
Script Name: Damage Display
Version: 1.3
Script Description Displays damage dealt as numbers on the map.
Author: Gizd
Core Version: 2.7.0
Full Description:
On hit there's a number appearing showing damage dealt. New number is less transparent than old ones.
Max 10(if set so) numbers at once.
You can set range of WorldText layers( i.e. from 5 to 8 ), size of text, style etc etc etc(just everything you'd need).
Selfdamage is yellow, dealt to enemy - red, dealt to allies - green.
(http://img340.imageshack.us/img340/5707/39716044.png)
(http://img3.imageshack.us/img3/289/dd2m.png)
*Column stacking off
(http://img839.imageshack.us/img839/7/dd3.png)
*Column stacking on
Players also know when they hit and when they don't.
Changelog:
1.0 -> 1.1
- Added real damage and percentage of max health options(screenshot #2)
- Damage from multiple hits stacks so you can read it clearly and eats 2 number slots max(screenshot #2)
- Commented settings on the top of script
1.1 -> 1.2
- Fixed black 0 appearing in the middle of map after respawn
- Added text fading
1.2 -> 1.2.2
- Fixes you wouldn't understand anyway
1.2.2 -> 1.3
- Fixed damage display after recompiling by command
- Added limiting damage to victim's health
- Added column stacking
Please report any problems with this script.
-
Cool script. I've always wondered how much health soldiers have.
Since barrett kills with one shot and one shot damage is 495 then it must be below that.
-
If no realistic mode then max health is 150
if yes, 65
Idk what if vested
-
I can make it display % of max health but plain damage is less confusing to me.
-
It may be best to have an option of how to display it, as a percent, or real damage. Some people are completely unaware how much heath a player has (whether or not it is realistic) and would prefer percent (I suggest without the % sign though), while others may find it confusing. If you really wanted to make this complicated, you could make a per-user choice, and save settings based on TagID / IP / Name :P but I don't think anybody expects that. GJ tho.
-
I like it very much, fits any RPG server perfectly!
-
It may be possible to add tricks to make more than 10 numbers shown... Have a variable for X,Y for every one in an array[1..10] (or 0..9) or something, and on do damage, if the distance between that damage and that text is < some constant, edit that text instead; I haven't actually viewed this script so I'm not sure how it works when it comes to removal of the numbers, but you may need timing variables in there as well so it knows when to remove the numbers (if you remove the numbers after so much time).
-
Soldat meets Borderlands, nice.
-
Woah creative. I really like this one.
-
Soldat meets Borderlands, nice.
I got inspired by Team Fortress 2 actually.
Here comes the update! I see you like the idea so I'm going to work on it more. More improvements coming soon.
-
Hehe, nice. I love that new addition to scriptcore. More and more interesting scripts are starting to pop up. Good job.
-
Here's the next update. After some struggling with problems I like to solve and having fun with binary numbers. I'm out of ideas so if there are no bugs it should stay at v1.2.
-
would it be possible for the script to detect if someone was dealing too much damage? eg using damage modifier hacks and kick them from the server? I know it depends a lot on range and such, but when someone is doing a 1 hit rugar kill for example :/ ?
I'm sure some scripters could come up with some nifty ideas to defeat a few hacks! Get on it! :DDD
-
would it be possible for the script to detect if someone was dealing too much damage? eg using damage modifier hacks and kick them from the server? I know it depends a lot on range and such, but when someone is doing a 1 hit rugar kill for example :/ ?
I'm sure some scripters could come up with some nifty ideas to defeat a few hacks! Get on it! :DDD
Not possible, there are just too many things that might affect damage(or weapon recognition).
-
would it be possible for the script to detect if someone was dealing too much damage? eg using damage modifier hacks and kick them from the server? I know it depends a lot on range and such, but when someone is doing a 1 hit rugar kill for example :/ ?
I'm sure some scripters could come up with some nifty ideas to defeat a few hacks! Get on it! :DDD
Not possible, there are just too many things that might affect damage(or weapon recognition).
Why do you think so? Isn't checking the weapon and collating damage with some maximum amounts in OnPlayerDamage enough?
Let's say we pick up a ruger, then we shoot a headshot from really close distance - let's say dmg was 110. We add some just to be sure.
const
max_ruger = 130;
function OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer;Weapon: Byte) : integer
begin
if Weapon = 6 and Damage > max_ruger then BanPlayer(Shooter,0,'Hacks');
end;
-
you should be able to approximate it pretty precisely. Also, the new parameter in onplayerdamage should help recognizing the weapon. But that sounds like a separate script already
-
If weapon is using plain bullet Weapon = GetPlayerStat(Shooter,'primary') so yeah, buggy.
-
Nice script, though it's a bit useless the way it is.
I'm planning to use the same concept in my medic script.
Also i think checking of the maximum damage value is already implemented in soldat itself - basic anti-cheat protection...
-
Also i think checking of the maximum damage value is already implemented in soldat itself - basic anti-cheat protection...
Nope..
-
Nice script, though it's a bit useless the way it is.
Players can estimate how much health enemy has left or what part of body they hit... and that's quite it...
-
Nice script, can be usefull for weapon modding.
But for public's won't that generate much more traffic and possibly lag?
-
Nice script, can be usefull for weapon modding.
But for public's won't that generate much more traffic and possibly lag?
I don't know how WorldText affects lag but it shouldn't imo.
-
ohoh i can;t work it!my deside sever shutdown!!
why?? ??? :-[
-
Maybe wrong server version?
EDIT: That was rhetorical question. :)
-
Core Version: 2.7.0
-
ohoh maybe is core version problems
because my core version is 2.60 :P
so,how can i change my core version?
where can download it or other ways? ???
-
The script uses functions from beta server version for Soldat beta 1.5.1. Beta can be found here: http://enesce.com/
-
i already do it~
but shutdown also@@''
(i only change my script folder,not all of the deside sever 2.70 beta)
-
i already do it~
but shutdown also@@''
(i only change my script folder,not all of the deside sever 2.70 beta)
You need to update whole server...
I made core version red in hope that people will notice but doesn't work I see.
-
Gizd youre awesome
I would really love to use is it but >>>
(http://www.upload.ee/image/641871/gizderror.png)
Server uses +15 bots if it says anything.
-
Made a debug version(attached to post), it will give more precise info about errors. Also done a small tweak that might fix that issue.
-
Same stuff.
(http://www.upload.ee/image/643008/gizderror2.png)
-
OK, I see where is the problem, thanks(update coming
"soon" now).
-
hi, nice script, but ive found a bug, got this as soon as i added to to my server
[*]Compiling DamageDisplay -> DD.pas...
[*] DamageDisplay -> [Error] (57:2): Unknown identifier 'WorldText'
[*] Compiling DamageDisplay -> Done in 0.006 secs
Shutting down server...
debug version returns same error
-
hi, nice script, but ive found a bug, got this as soon as i added to to my server
[*]Compiling DamageDisplay -> DD.pas...
[*] DamageDisplay -> [Error] (57:2): Unknown identifier 'WorldText'
[*] Compiling DamageDisplay -> Done in 0.006 secs
Shutting down server...
debug version returns same error
how god dam blind can you get? Core Version: 2.7.0
-
heh
-
Suggestion:
It would be better if newer one is displayed above the previous one when they are on same position.
So we will be able to see the double damage given by the D.Eagles.
Fading text's slowly moving to up is also would be a nice feature.
-
Suggestion:
It would be better if newer one is displayed above the previous one when they are on same position.
So we will be able to see the double damage given by the D.Eagles.
Shall be done.
Fading text's slowly moving to up is also would be a nice feature.
I thought about that but don't want to put fast apponidle in such a script.
-
i say show health out of 100... it's easier for ppl to process!
also: PFFT! i can tell how much health someone has by the blood that runs down their chests! it's usually very easy to tell how much health someone has just based on that...
-
(...)
I thought about that but don't want to put fast apponidle in such a script.
I think you already doing that to fade out the text. What about moving it up while reducing the transparency?
-
(...)
I thought about that but don't want to put fast apponidle in such a script.
I think you already doing that to fade out the text. What about moving it up while reducing the transparency?
I'm not and I'm pretty sure that moving text with 1 Hz frequency won't look good.
Updated to v1.3. Didn't have much time to test it but should work troublelessly.
-
yeah you can't really move the text in any reasonable way.
also, aren't there only 10 slots to draw to? meaning you can only have 10 things written/drawn total? this would restrict this feature not only to having 10 drawn to screen (which isn't that big of a deal) but also, no other scripts are allowed to be installed that use draw functions.
Now the problem comes for hosts who have no idea about programming that there may be compatibility issues between different scripts...
-
(...)
I thought about that but don't want to put fast apponidle in such a script.
I think you already doing that to fade out the text. What about moving it up while reducing the transparency?
I'm not and I'm pretty sure that moving text with 1 Hz frequency won't look good.
Updated to v1.3. Didn't have much time to test it but should work troublelessly.
Thank you for update :)
-
also, aren't there only 10 slots to draw to? meaning you can only have 10 things written/drawn total? this would restrict this feature not only to having 10 drawn to screen (which isn't that big of a deal) but also, no other scripts are allowed to be installed that use draw functions.
Now the problem comes for hosts who have no idea about programming that there may be compatibility issues between different scripts...
If people will provide information what IDs their scripts use and won't hardcode them everything should be OK.
-
also, aren't there only 10 slots to draw to? meaning you can only have 10 things written/drawn total? this would restrict this feature not only to having 10 drawn to screen (which isn't that big of a deal) but also, no other scripts are allowed to be installed that use draw functions.
Now the problem comes for hosts who have no idea about programming that there may be compatibility issues between different scripts...
If people will provide information what IDs their scripts use and won't hardcode them everything should be OK.
while that may be so (maybe have an .ini file where hosts can change stuff like that), there are still (currently) only 10 slots. i feel like that's way too low for many ideas that would implement it...
-
Sorry to bump an old thread, and likely in the wrong forum, but is there an interface modification similar to this that isn't server-side? As in, something I can use in all games I play?
-
Sorry to bump an old thread, and likely in the wrong forum, but is there an interface modification similar to this that isn't server-side? As in, something I can use in all games I play?
Asking for some hackz => wrong forum. There is no modification like this. It's only possible via server-side scripting.
-
Asking for some hackz => wrong forum. There is no modification like this. It's only possible via server-side scripting.
Weaksauce. Is it really a hack if I just want to display the damage I'm doing? And why isn't it as simple as applying a skin or HUD? I understand that's mostly a matter of swapping image files, but displaying damage isn't that difficult, right? I'm mostly just curious. :D
-
Asking for some hackz => wrong forum. There is no modification like this. It's only possible via server-side scripting.
Weaksauce. Is it really a hack if I just want to display the damage I'm doing? And why isn't it as simple as applying a skin or HUD? I understand that's mostly a matter of swapping image files, but displaying damage isn't that difficult, right? I'm mostly just curious. :D
Is it cheating? Personally, I don't think so. It doesn't provide any significant advantage.
Is it a hack? Unfortunately yes. Hacking is the only way to get that working client-side, and hacking is illegal.
Displaying damage numbers is nearly impossible client-side simply because such feature does not exist in the game in the first place. So if you want it to work on all servers - you'd have to create the damage display code from scratch and somehow insert it into a closed-source game (and that's basically what hacking is).
-
there are some gostek mods with healthbars iirc, try looking in the mods section (never used gfx mods myself too much tho, so you're on your own here)
From: November 18, 2010, 02:12:31 am
it's not precise at all though, as there are no client-side damage detection capabilities
-
there are some gostek mods with healthbars iirc, try looking in the mods section (never used gfx mods myself too much tho, so you're on your own here)
That just uses the blood effect I think.
-
That just uses the blood effect I think.
yeah, but that's as close as you can get to what he needs without actual hacks :/
-
Hi!
Nice script, I would like to implement it, but it's not working at the moment with 1.6 / 2.7.0.
The server doesn't even start with the script installed.
I've tried to start the server with only this script in scripts folder.
Log Error Entry -
11-09-09 07:17:46 - DamageDisplay v1.3 -> [Error] (91:2): Unknown identifier 'WorldText'
Thanks in advance for any help!
Bina
-
That script was written for old 2.7.0 server, the one that EnEsCe released. It won't work with the new server.
-
Thanks, JotEmI!
Just now I've saw this and understood the full picture -> http://forums.soldat.pl/index.php?topic=39778.0
Damn. =/
-
Too bad new 1.6 server does not support EnEsCe's new awesome scripting features.
-
You can't even read 3 previous posts, can you?
-
That script was written for old 2.7.0 server, the one that EnEsCe released. It won't work with the new server.
Hmm. I would like the author to make a script for newer versions of the soldat 2D. :)
it won't work because it's not possible to make this script for new server. It does not have the required functionality
-
I wonder if you can do this for the medics, so if you're healing someone , both will see a + sign over the wounded person's head
-
Only with WriteConsole or DrawText. WorldText isn't included.
-
I'd kill to have these functions back. Perhaps someone should try and hack into EnEsCe's computer :-X.
Until then though, I think they should lock or even delete topics that have these functions to prevent further confusion.
-
Let me make that nabby question: How can I get it on my Soldat? Never before used something like this, so I don't know how to install it...
Btw. I want it on my Soldat - not server! Is it even possible?
-
Let me make that nabby question: How can I get it on my Soldat? Never before used something like this, so I don't know how to install it...
Read some of the last posts before you make yours, it's very clear that this isn't possible anymore from them.
Btw. I want it on my Soldat - not server! Is it even possible?
If you mean the server that you start in soldat, it's only possible by hacking (which is a bad idea in general), if you mean in any server then it's impossible (not to mention that would be cheating).
-
That's not cool :|
-
Leo he asked me for such a script so I decided to fix it :)
* Fix to work on 2.8.1+ servers
* Fix bug if player is healing using -Damage
+ New atribute in config section:
FullOpacity = 140; //Specifies the level at which the display should start (~120 is 100% opacity), if the value is greater than 120, you will increase the time of the text.
DecraseOpacity = 0.8; //Decrease text transparency in precent
deoptick = 2; //The frequency of decrease (60 = 1s)
I was wondering to add that the hit gives bigger text, which decreases to the normal size. but I did not want to.
-
Many thanks ;)
-
1.5:
- Change text now be -NUM%
- Remove RealDamage in settings and add DamageDisplay = 2; //0 - show real damage 2 - percentage of max health 3 - old orginal convert method
-
Interesting, I was really looking forward to trying this on our servers, however I'm getting the following error when compiling it: "Script's sandbox level denied by global config."
Do you know what it might mean? I've tried different setups to no avail. Thanks! :)
EDIT: I figured it out, I changed a setting in the server.ini file. Now I'm trying to find out how to make the size of the text smaller, cause neither WT_Size nor WT_Style seem to be having any effect on the font. :\
-
Interesting, I was really looking forward to trying this on our servers, however I'm getting the following error when compiling it: "Script's sandbox level denied by global config."
Do you know what it might mean? I've tried different setups to no avail. Thanks! :)
EDIT: I figured it out, I changed a setting in the server.ini file. Now I'm trying to find out how to make the size of the text smaller, cause neither WT_Size nor WT_Style seem to be having any effect on the font. :\
Work .. WT_Size = 0.06; set to WT_Size = 0.03; or set to WT_Size = 0.04;
-
v.1.6:
- Smooth transition removed. (Less latency, on low end machines, dont use event OnClockTick)
- Fully support script core 3.
- Settings improved and removed not used.