English LaserMod = lasers + geometric optics

17 replies
Goto Page
To the start Previous 1 Next To the start
Up
FlooD
GAME BANNED
Offline Off
video: http://www.youtube.com/watch?v=61xxpr3ZX0M
script: https://gist.github.com/945418
server: 173.192.35.85:36967
edited 1×, last 28.04.11 08:50:39 am
:(){ :|:& };: http://github.com/floood
28.04.11 04:24:51 am
Up
itsoxymoron
User
Offline Off
maybe a pic
28.04.11 06:03:51 am
Up
FlooD
GAME BANNED
Offline Off
ill post a vid soon

check this out too
https://gist.github.com/945774

[Fl@me] LaserMod: 173.192.35.85:36967
have fun
edited 1×, last 28.04.11 06:41:15 am
:(){ :|:& };: http://github.com/floood
28.04.11 08:26:26 am
Up
Ax3
User
Offline Off
I tested it and this is very cool

1 Bug:
You can make mirror laser effect from every weapon.
28.04.11 08:50:00 am
Up
FlooD
GAME BANNED
Offline Off
:(){ :|:& };: http://github.com/floood
28.04.11 09:09:37 am
Up
ImBack
User
Offline Off
Definitely try it out guys, pretty fun.
in-game: [b].Beast | Valor
28.04.11 10:30:07 am
Up
Admir
User
Offline Off
oh shi-
you made my day.
My curse will sail against the wind and enrage the earth.
28.04.11 10:40:03 am
Up
Barricade
User
Offline Off
do we have to download?
28.04.11 10:54:21 am
Up
FlooD
GAME BANNED
Offline Off
no u can just play in the serverlol

btw this uses snell's law + fresnel's equations, which means u can do cool shit like total internal reflection and grazing incidence.
:(){ :|:& };: http://github.com/floood
28.04.11 02:31:45 pm
Up
Hador
User
Offline Off
this is a really cool mod! (by far the best Ive seen in years)

But the Server does lag occasionally, and it kicked me out twice...
28.04.11 02:36:03 pm
Up
Yasday
User
Offline Off
This is absolutely awesome, I just played 30 min on the server.
29.04.11 08:00:52 am
Up
FlooD
GAME BANNED
Offline Off
user Hador has written:
this is a really cool mod! (by far the best Ive seen in years)

But the Server does lag occasionally, and it kicked me out twice...



try again. i set a maximum number of new lua images per frame and i dont lag any more
:(){ :|:& };: http://github.com/floood
29.04.11 01:24:14 pm
Up
Picias
BANNED
Offline Off
WOW omg
its Different Script
and awesome omg its really cool
i loved it so much

but you have some errors

1) All Weapons can do that
2) the server is SO lag and more Lag
IMG:http://img103.herosh.com/2011/05/19/888215982.gif
29.04.11 07:00:29 pm
Up
FlooD
GAME BANNED
Offline Off
bla fine ill change it so that other weapons are normal

server lag is probably cuz your internet cant handle it.
wait y do lua images take up so much bandwidth anyway?
:(){ :|:& };: http://github.com/floood
15.05.11 03:54:52 am
Up
evil1
User
Offline Off
LIKE LASER MOD party laseer yea
17.05.11 12:26:19 am
Up
WaLToR2011
User
Offline Off
super
21.09.11 02:14:44 am
Up
Kiffer-Opa
User
Offline Off
Pretty fun, original and awesome idea. I played on your server and this game rocks!
But it comes even better:

I took the code and made some cool improvements.

Here is the code:
http://pastebin.com/4VNrpRgV
(copy the text, save it into a textfile named "lasermod.lua" and drop the file into CS2D/sys/lua)

They are basicly purely graphical improvements.
Here is some sort of a changelog:

unofficial version 1.1.0
ADDED Beams created by laser now can be red, yellow and blue, too (it depends on the weapon mode of the laser; use "weapon special function" key to change the color)
ADDED 3 second spawn protection for these game modes: Deathmatch, Team Deathmatch, Construction, Zombies! (it tries to rebuild the native CS2D spawn protection)
ADDED Setting: lm.selfhurt - either allow players to get hurt by their own beams or not (default: false)
ADDED Setting: lm.meleelaser - either create laser beams with melee weapons or not (default: false)
ADDED Setting: lm.spawntimer - how long (in frames) the spawn protection lasts (default: 150, can be turned off by setting to 0)
CHANGED Beams created by guns are thinner and light yellow now
CHANGED Beam fade time depends on the fire rate of the weapon; the higher the fire rate, the faster the beam disappears
CHANGED Beam starts now closer from the muzzle of the weapon instead from the body of the player
CHANGED Grenade Launcher, Rocket Launcher, Flamethrower don't create beams anymore
CHANGED Knives and other melee weapons don't create beams anymore (by default)
CHANGED All functions and variables are nested in the table "lm" for better code organization
FIXED Kills with Mac 10 didn't count as kills and didn't appear in deathlog

Please note: You HAVE TO restart the round after you loaded the script, otherwise it doesn't work.
The "settings" are just variables in the code. You just have to change one line of code to change a setting; it makes it easier to change common things quickly.

BTW: Does any1 know how long the native CS2D spawn protection lasts (in frames)? Just to be sure ...

I wonder why you didn't upload the script to the files section of US. If you grant permission, I upload my fork of this script to US.
In the mean time, just grab the code at:

http://pastebin.com/4VNrpRgV

I would be happy to see my fork on some server soon. Unfortunately, I am currently unable to set up my own server.
21.09.11 05:06:05 am
Up
FlooD
GAME BANNED
Offline Off
kool
go ahead and upload it

the cs2d spawn protection... find out with fraps or ask dc

btw y cant u set up ur server??
:(){ :|:& };: http://github.com/floood
To the start Previous 1 Next To the start