Forum

> > CS2D > Scripts > How To mix Scripts?
Forums overviewCS2D overview Scripts overviewLog in to reply

English How To mix Scripts?

1 reply
To the start Previous 1 Next To the start

old How To mix Scripts?

UgnsLTU112
User Off Offline

Quote
Hello i want make a realistic script but i dont know how to mix this to Scripts
1.http://www.unrealsoftware.de/files_show.php?file=6913
2.how to mix this script with 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
weapons_table_shake2 = {1,2,4,6}
weapons_table_shake3 = {3,5,21,23,32,38,39,74,88}
weapons_table_shake4 = {20,22,24,30,31,33,34,40,46,54,75,86}
weapons_table_shake5 = {10,11,35,36,37,45,47,49,51,52,53,69,72,73,76,77,78,85,87}

function contains(table, element)
     for _, value in pairs(table) do
          if value == element then
          return true
          end
     end
return false
end

addhook("attack","attackshake")
function attackshake(id)
     if contains(weapons_table_shake2,player(id,"weapon")) then
          parse("shake "..id.." 2")
     end
     if contains(weapons_table_shake3,player(id,"weapon")) then
          parse("shake "..id.." 3")
     end
     if contains(weapons_table_shake4,player(id,"weapon")) then
         parse("shake "..id.." 4")
     end
     if contains(weapons_table_shake5,player(id,"weapon")) then
          parse("shake "..id.." 5")
     end
end

addhook("hit","hitshake")
function hitshake(id)
          parse("shake "..id.." 3")
end
At the first i Script i dont know how to Remove health regeneration .....

old Re: How To mix Scripts?

Crabby
User Off Offline

Quote
user UgnsLTU112 has written
At the first i Script i dont know how to Remove health regeneration .....


Read the post first.

Realism.lua has written
regeneration = 1 -- Turn "regeneration" on/off (1 = On, 0 = Off)
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview