Forum

> > CS2D > Scripts > Teleport zombie
Forums overviewCS2D overview Scripts overviewLog in to reply

English Teleport zombie

14 replies
To the start Previous 1 Next To the start

old Teleport zombie

Autumn
User Off Offline

Quote
Hello all!
Whether probably to make so that the zombie a bot teleported to the player which it attacks, time in 10 seconds?

old Re: Teleport zombie

KimKart
Idiot Off Offline

Quote
He wants that a bot(in zombie mod)teleports to him in 10 seconds when the round starts or he pushes a trigger.

Edit:Or he wants that the zombie teleports to him in the start and only after 10 seconds it starts to attack him

old Re: Teleport zombie

Jynxxx
User Off Offline

Quote
so what he wants is to press a button to make a zombie spawn at his location or teleports to him when the rounds begins, right.

old Re: Teleport zombie

Bowlinghead
User Off Offline

Quote
But is it the NPC zombie or the bot zombie?

Both is possible...

But we need more information!

old ....

sheeL
User Playing CS2D

Quote
What did he whether

teleport with the weapon is "claw"?
I have a script like this :S
edited 1×, last 13.12.11 05:29:11 pm

old )

Autumn
User Off Offline

Quote
It is necessary that the bot (in zombie mod) teleported to the player which attacks it, but so that teleportation could be made time in 10 seconds.

old Re: Teleport zombie

sheeL
User Playing CS2D

Quote
user Autumn has written
It is necessary that the bot (in zombie mod) teleported to the player which attacks it, but so that teleportation could be made time in 10 seconds.


You want to? Just for you (Admin) or for all players?
I do not know what you are willing but ...
I give here what i have understood correctly ...
Sorry my English, My From France

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
function Array(size,value) 
    local array = {}
    for i = 1, size do
        array[i]=value
    end
    return array
end

mx = Array(32,0)
my = Array(32,0)

timer(150,"requestdata","",0)


function requestdata()
    reqcld(0,2)
end



addhook("clientdata","clientdata")
function clientdata(id,mode,x,y)
if mode == 2 then
mx[id] = x
my[id] = y
end
end

addhook("attack","client")
function client(id)
if player(id,"weapon") == 78 then
parse("setpos "..id.." "..mx[id].." "..my[id].."")
end
end

old Re: Teleport zombie

Autumn
User Off Offline

Quote
It not absolutely that...In your script teleportation occurs in that place where specifies the mouse.It is necessary that the bot simply teleported to the player which attacks it,but that teleported occurred no more than 1 time in 10 seconds

old Re: Teleport zombie

EngiN33R
Moderator Off Offline

Quote
user Autumn has written
It not absolutely that...In your script teleportation occurs in that place where specifies the mouse.It is necessary that the bot simply teleported to the player which attacks it,but that teleported occurred no more than 1 time in 10 seconds


Okay, wait, so basically you want the zombie to teleport to the player who attacked it? Once every ten seconds for how long?

old Re: Teleport zombie

oxytamine
User Off Offline

Quote
At first I lol'd, but then I serious'd.
user EngiN33R has written
Okay, wait, so basically you want the zombie to teleport to the player who attacked it? Once every ten seconds for how long?

user Autumn has written
How long?... hmm. While him won't kill!

But it makes no sense, completely. What for would someone need this?

old Re: Teleport zombie

KimKart
Idiot Off Offline

Quote
user oxytamine has written
But it makes no sense, completely. What for would someone need this?


So some players wont camp in secret spots which are totaly dark.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview