Forum

> > CS2D > General > [WIP] Stargate
Forums overviewCS2D overviewGeneral overviewLog in to reply

English [WIP] Stargate

7 replies
To the start Previous 1 Next To the start

old [WIP] Stargate

webnull
User Off Offline

Quote
Hello, im working on Stargate mod for Counter-Strike 2D.

Stargate is TV series, where earth people are travelling to another planets in another galaxies.

Progress of the mod:
http://www.youtube.com/watch?v=vAOWG-lAiiM

Many games already have Stargate mods.

Garry's Mod:
http://www.youtube.com/watch?v=IKTy7qxXoX8

Operation Flashpoint:
http://www.youtube.com/watch?v=ClLiKR7LvcI

Counter-Strike: Source:
http://www.youtube.com/watch?v=wIpnomIVTRE

Oblivion:
http://www.youtube.com/watch?v=HCNMeIdYSss

Second life:
http://www.youtube.com/watch?v=iG27I2hT-UA

And moore, more...

And ofcourse all mods are based on dialing from TV series, so there is video:
Stargate Universe ( Also the first gates are from Stargate SG-1 and second from SG:U ):
http://www.youtube.com/watch?v=Mh9Wj-pHnt8

Stargate: Atlantis:
http://www.youtube.com/watch?v=oIEQB0ACWd4


So... now is time make Stargate mod for Counter-Strike 2D.

Im using Garry's Mod to take screenshots of Stargates and its animations.

With GIMP im editing screenshots and creating animations for Counter-Strike 2D.

To place the Stargates you just must create configuration file in maps directory, name it same as map name.

The script will automaticaly place Stargates ready to dial.

I can do complete Stargate system, but i now have some problems.

1. How to play sound only on X and Y
2. FIX THE TIMER FUNCTION PLEASE...
3. Why there is no support for GIF in image lua function?


-- WebNuLL

old Re: [WIP] Stargate

Vectarrio
User Off Offline

Quote
You can place env_sound on map, then write in lua
1
parse("trigger \"nameofentity\"")

old Re: [WIP] Stargate

webnull
User Off Offline

Quote
Vectar666 has written
You can place env_sound on map, then write in lua
1
parse("trigger \"nameofentity\"")


Thank you.
On this way i will lost chance to made Stargate placement on a map without editing a map file...

But can i create new entity with LUA script?

-- WebNuLL

old Re: [WIP] Stargate

Matsu-Kiri
User Off Offline

Quote
do you have a DHD yet? I cant remember where i got mine, but if you need one i might be able to make you the sprite.

btw, are you going to add lua scripts in this, like sg member get p90, colt 1911, he grenade, flash, light amror, etc?

old Re: [WIP] Stargate

webnull
User Off Offline

Quote
I can take pictures of DHD from Garry's Mod, its not a problem - and i will do this.

Quote
btw, are you going to add lua scripts in this, like sg member get p90, colt 1911, he grenade, flash, light amror, etc?


So, i can do this, but it will be disabled by default.

-- WebNuLL

old Re: [WIP] Stargate

Flacko
User Off Offline

Quote
Quote
3. Why there is no support for GIF in image lua function?

Gif is not free like bmp or png

Quote
But can i create new entity with LUA script?

No.

old Re: [WIP] Stargate

goweiwen
User Off Offline

Quote
For the sound problem, I use this.
1
2
3
4
5
6
7
8
9
10
function radiussound(sound, x, y, radiusx, radiusy)
	if not (radiusx and radiusy) then radiusx, radiusy = 320, 240 end
	local x1, y1, x2, y2 = x-radiusx, y-radiusy, x+radiusx, y+radiusy
	for _, v in ipairs(player(0, 'table')) do
		if player(v, 'x') >= x1 and player(v, 'x') <= x2 and player(v, 'y') >= y1 and player(v, 'y') <= y2 then
			parse("sv_sound2 " .. v .. " " .. sound)
		end
	end
	return 1
end
It doesn't vary the volume based on distance, but does the job for me.

old Re: [WIP] Stargate

webnull
User Off Offline

Quote
Quote
weiwen


REALLY THANK YOU!

THIS IS WHAT I NEED!

So i will test it today, thank you again.

-- WebNuLL
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview