English Air plane shadow for the Air Strike icon

54 comments
01.09.10 10:29:28 pm
like 44 like it!
9 kb, 857 Downloads
Kiffer-Opa
User
Offline Off
This Lua script lets appear a shadow of an airplane above the player who called an Air Strike. The airplane will always fly in the direction the player was looking when he threw the marker.
> current version: 1.3

Installation (important!)
To install, you must do two things:
• Extract the contents of the zip archive to the main CS2D directory
• Add this line into the file sys/servertransfer.lst
Code:
1
gfx/Boing_B_17G_contour.png

so the airplane shadow is visible for all players

Starting the script
To start the script, let Lua parse this line:
Code:
1
dofile("sys/lua/asimg.lua")

You probably want to add this into the file sys/lua/server.lua so the script starts when the server starts.

Notes: In my test, this script did not go into conflict with other scripts. If you discover errors when using this script together with other scripts, let me know.

Update to v1.1: Whoops, there was a bug in version 1.0. When throwing lots of Air Strikes, the console complained about table fields that did not exist. This console spam could be a bit annoying for the server and I fixed that issue now.
Update to v1.2: Whoops, there was another bug (thx, phihung940) which let apper airplanes if you use another weapon after holding an Air Strike marker in hand. This should be fixed now. I also added parameters in the source code for a quick change of the airplane speed and the start distance from the throwing player.
Update to v1.3: I took a different default image for the air plane. It is somewhat the contour of a B 17G and is based on this work by bagera3005. It looks more like a bomber, has sharper contours than the previous image and even has a smaller file size!
imageimage
edited 3×, last 23.09.11 07:26:18 pm
ok This file has been reviewed and approved by Starkkz (30.11.15 01:58:19 am)

Comments

54 comments
Goto Page
To the start Previous 1 2 3 Next To the start

Log in!

You need to log in to be able to write comments!Log in
02.09.10 10:46:48 am
like I like it!
Up
FASTDIE
User
Offline Off
a good script a good idea this is AWESOME!
02.09.10 09:05:39 am
like I like it!
Up
Cure Pikachu
User
Offline Off
Amazing... What more can I say?
02.09.10 07:08:45 am
Up
Kiffer-Opa
User
Offline Off
Thx phihung940, I think I fixed that bug now.

I also added parameters in the source code. Just change the values of the variables "asimg.speed" or "asimg.start" (and look at the comments!).
02.09.10 04:39:30 am
like I like it!
Up
phihung940
User
Offline Off
a... how to speed up the sprites ? and if i speed up the sprites, it will + some second before it come right ?

I found a bug , I have a AirStrike but i not throw it , and i shot , then the shadow still apear , even i dont shot !
edited 1×, last 02.09.10 04:52:38 am
02.09.10 04:24:46 am
like I like it!
Up
Passer
User
Offline Off
Nice Job! then I Like it too
02.09.10 02:23:17 am
like I like it!
Up
SANTER
User
Offline Off
other awesome job
well done

+5
02.09.10 02:00:36 am
like I like it!
Up
J4x
User
Offline Off
¿kosano why u rate it 4? its a really awesome script, i think it deserv a 5
02.09.10 01:25:42 am
like I like it!
Up
kosanon
User
Offline Off
waw its air flare very good
01.09.10 11:57:17 pm
like I like it!
Up
BlacKJacK93
User
Offline Off
Just AWESOME 5 / 5 , keep it up
01.09.10 11:54:59 pm
like I like it!
Up
The Spy
User
Offline Off
WOW,this is perfecy man!
01.09.10 11:44:12 pm
like I like it!
Up
0a
User
Offline Off
yes, perfect! nice work man!
01.09.10 11:34:57 pm
like I like it!
Up
awcmon
User
Offline Off
Whoa! Neat script! Now it really looks like an airstrike!
01.09.10 11:11:51 pm
like I like it!
Up
Todesengel
User
Offline Off
Awesome ! DC should put it into the next version of CS2D
01.09.10 10:50:01 pm
like I like it!
Up
J4x
User
Offline Off
very cool script this is AWESOME!
To the start Previous 1 2 3 Next To the start