English Trails and spawn bomb

19 replies
Goto Page
To the start Previous 1 Next To the start
28.01.12 10:19:36 pm
Up
Draft
User
Offline Off
I want some help. I would wish you to help me with two things.

Bomb spawn:

All T to spawn with bomb equipped

Trail:



Secound 1:08

if press f2 then menu with "Trail|>" then there will be "On|>,Off|>"

Pls help
IMG:http://samlancashire.com/quiz/creeper/generated2/33.png
28.01.12 10:22:36 pm
Up
Apache uwu
User
Offline Off
What's the point of having everyone spawn with a bomb? I don't think they will be able to all plant it, or even all have it.

@trail: Use images, with ms100, that will give the illusion of a trail and not be extensive.
28.01.12 10:24:14 pm
Up
Alistaire
User
Offline Off
Or use movetile hook..
IMG:http://i.imgur.com/5zhwOTP.png
28.01.12 10:33:23 pm
Up
Draft
User
Offline Off
all terrorist to spawn with bomb , they will look red on the radar
IMG:http://samlancashire.com/quiz/creeper/generated2/33.png
28.01.12 10:36:04 pm
Up
Alistaire
User
Offline Off
Code:
1
2
3
4
5
6
7
8
9
addhook('startround','impossibru')

function impossibru()
     for i = 1, 32 do
          if player(i, 'team') == 1 then
               parse('equip '..i..' bombid')
          end
     end
end


Forgot bomb Id.
IMG:http://i.imgur.com/5zhwOTP.png
28.01.12 10:38:20 pm
Up
Apache uwu
User
Offline Off
user Alistaire has written:
Or use movetile hook..


but then u won't get that glow effect
28.01.12 10:39:38 pm
Up
Alistaire
User
Offline Off
user Apache uwu has written:
user Alistaire has written:
Or use movetile hook..


but then u won't get that glow effect


Well how the hell do you want to add a glow effect then.
IMG:http://i.imgur.com/5zhwOTP.png
28.01.12 10:43:36 pm
Up
Apache uwu
User
Offline Off
well in the video, it glowed & it looks much nicer if it were on always, but of course that would lag the server and clients with that many images
28.01.12 10:44:56 pm
Up
Draft
User
Offline Off
I need simple trail, no glow or something but i want it fade to alpha like in video (when its 3 tiles after the player fade to transparent)

bomb script not work
IMG:http://samlancashire.com/quiz/creeper/generated2/33.png
28.01.12 10:45:59 pm
Up
Alistaire
User
Offline Off
Oh really --'

Search what the bomb's id is and replace bombid with it.
IMG:http://i.imgur.com/5zhwOTP.png
28.01.12 10:47:01 pm
Up
Draft
User
Offline Off
i did bomb id 55 i did replace
IMG:http://samlancashire.com/quiz/creeper/generated2/33.png
28.01.12 10:48:47 pm
Up
Apache uwu
User
Offline Off
user Draft has written:
I need simple trail, no glow or something but i want it fade to alpha like in video (when its 3 tiles after the player fade to transparent)

bomb script not work


i want it fade to alpha like in video

that is glow
28.01.12 10:50:24 pm
Up
Draft
User
Offline Off
if trail 3 tile distance it become invisible at end its like blending

IMG:http://img560.imageshack.us/img560/9034/15455067.png
edited 1×, last 28.01.12 11:03:23 pm
IMG:http://samlancashire.com/quiz/creeper/generated2/33.png
28.01.12 11:23:56 pm
Up
Apache uwu
User
Offline Off
So something like this?

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
image_name="gfx/shadow.bmp"
image_fadetime=1000

addhook("serveraction","_serveraction")
addhook("menu","_menu")
addhook("ms100","_ms100")
addhook("leave","_leave")
addhook("die","_die")

trails={}
images={}

function _serveraction(id,action)
     if action==1 then
          if trails[id]==true then
               menu(id,"Trail,(Trail On),Trail Off|>")
          else
               menu(id,"Trail,Trail On|>,(Trail Off)")
          end
     end
end

function _menu(id,title,button)
     if title=="Trail" then
          if button==1 then
               if trails[id]==nil or trails[id]==false then
                    trails[id]=true
                    msg2(id,string.char(169).."000255000Trails have been activated.")
               end
          elseif button==2 then
               if trails[id]==true then
                    trails[id]=false
                    msg2(id,string.char(169).."255000000Trails have been deactivated.")
               end
          end
     end
end

function _ms100()
     for i=1,32 do
          if trails[i]==true and player(i,"exists")==true and player(i,"health")>0 then
               local img=image(image_name,player(i,"x"),player(i,"y"),0)
               table.insert(images,{img,image_fadetime})
               tween_alpha(img,image_fadetime,0)
          end
     end
     for index,img in ipairs(images) do
          if img[2]<=0 then
               freeimage(img[1])
               images[index]=nil
          else
               images[index][2]=img[2]-1
          end
     end
end

function _leave(id)
     trails[id]=false
end

function _die(id)
     trails[id]=false
end
29.01.12 11:14:41 am
Up
Draft
User
Offline Off
Its exactly what i wanted! but one thing, it looks a little fag.... it should be lighted?

Cool if press f2 then menu trail 1,trail 2,trail 3 if trail 1 then shadow.bmp if trail 2 then flare1.bmp if trail 3 then flare3.bmp

Color custom trail pls


Bomb no work
Bump?
edited 2×, last 29.01.12 02:48:20 pm
IMG:http://samlancashire.com/quiz/creeper/generated2/33.png
29.01.12 03:59:41 pm
Up
Apache uwu
User
Offline Off
Yeah you need to change the images, I simply picked one that I know everyone would have.

@bomb: I don't think that works, game would glitch if you equipped everyone with a bomb.
29.01.12 08:50:12 pm
Up
Draft
User
Offline Off
Trail look faggot, image, i want light it
IMG:http://samlancashire.com/quiz/creeper/generated2/33.png
29.01.12 10:33:21 pm
Up
Apache uwu
User
Offline Off
Read my post.

Change the image to a lighter one, or use imagecolor.

If you're going to be rude I'm not gonna help.
29.01.12 11:00:41 pm
Up
J4x
User
Offline Off
Wouldn't using the >move< hook and with >effect< in flare mode be easier?
http://www.cs2d.com/help.php?cat=all&cmd=effect#cmd
29.01.12 11:15:50 pm
Up
TimeQuesT
User
Offline Off
effect 'flare' command sucks.
You can't change the particle amount to less 32(?), As I know.
Muh
To the start Previous 1 Next To the start