English Yates - Hitmarker Lua [Update] icon

33 comments
20.04.12 09:23:01 pm
like 21 like it!
2 kb, 372 Downloads
Yates
Reviewer
Offline Off
> Little update, < you can put the ID's in a table which you want to show the hitmarker.

Code:
1
2
3
4
5
--[[ 
Example:
WeaponsTable = {32,51,74}
The weapons with the ID 32, 51 & 74 (M4A1, HE & Wrench) will display the hitmarker on hit.
]]--

_____________________________________________________________________________________________________

• Hitmarker •

It seems no one has done such a simple script before. And because I hate it when I have no idea if I'm hitting someone or not from a far distance I decided to make it.

• The lower the enemy's health, the redder the marker gets.
• Random rotation.
• Nice little spot above your head.

> Credits:
user Majatek For the awesome sprite,

> You can use this and edit it for whatever you like. But please ask permission if you're going to upload it, thank you.

• How to install: •

1) Place hit_marker.png in the gfx/yates/lua folder. Create one if not already made.
2) Place the lua file in sys/lua and add in the server.lua file;
Code:
1
dofile("sys/lua/hit_marker.lua")

3) Add in sys/servertransfer.lst;
Code:
1
gfx/yates/lua/hit_marker.png
imageimage
edited 5×, last 29.05.12 01:25:04 pm
ok This file has been reviewed and approved by Infinite Rain (03.12.15 10:59:12 pm)

Comments

33 comments
Goto Page
To the start Previous 1 2 Next To the start

Log in!

You need to log in to be able to write comments!Log in
20.04.12 11:03:07 pm
Up
EP
User
Offline Off
ahh.. another useless and easy script
20.04.12 10:53:26 pm
Up
Yates
Reviewer
Offline Off
The first hit is barely visible. I must agree that this wouldn't be the perfect thing to put on a standard server. But it is good for a Zombie server and random fun servers that people seem to like.
20.04.12 10:51:20 pm
like I like it!
Up
Navy Seal
User
Offline Off
@arxi yea that is true, if you will make one hit, then you can just senselessly random at that direction
20.04.12 10:40:53 pm
like I like it!
Up
krabob
User
Offline Off
Nice indeed.
20.04.12 10:34:08 pm
Up
oxytamine
User
Offline Off
Script it nice, has no use due to unfair gameplay conditions.
20.04.12 10:32:13 pm
like I like it!
Up
4Vendetta
User
Offline Off
Nice
20.04.12 10:03:41 pm
like I like it!
Up
Majatek
User
Offline Off
Awesome, now I know when I hit someone off in the far edges of the maps instead of not knowing who I hit due to the restricted view space! n__n
20.04.12 09:56:50 pm
like I like it!
Up
dENd
User
Offline Off
Stupid as hell.
This is useless.
20.04.12 09:40:30 pm
like I like it!
Up
Navy Seal
User
Offline Off
nice script =D

@chex there is already a hit sound in cs2d, but it is hard to hear because majority of weapons have louder audio than hitsound. Try to use silenced weapons and make a hit, you will hear a sound of a weapon and hitsound.
20.04.12 09:39:18 pm
like I like it!
Up
Chex
User
Offline Off
I wasn't asking for a hit sound, I know how to script. I was just saying I would personally use a hitsound over a hit marker. It's sometimes called "Feedback".
20.04.12 09:35:53 pm
Up
Yates
Reviewer
Offline Off
@user Chex: Then remove all the image shit and put a sound there. Simple.
20.04.12 09:34:23 pm
like I like it!
Up
Chex
User
Offline Off
That's handy. I think that hitsounds are a bit more natural though, as it would be more subconcious than "HERES A MARK TO TELL IF YOU HIT".

But yeah that's just my opinion, and I guess anyone could make a hitsound script for themselves.
20.04.12 09:24:19 pm
like I like it!
Up
Time
User
Offline Off
Suxx.
To the start Previous 1 2 Next To the start