It's for fun rite?Even in the WORM game,there is a weapon called KAMIKAZE which show the japanees attacks.
Well,here I HAVE CHANGED THE SCRIPTS,[is it illegal,coz THIS IS OPEN SOFTWAE RIGHT?]but still,is it gonna work?
FEEDBACKS PLEASE!
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
64
65
66
67
68
69
70
71
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
64
65
66
67
68
69
70
71
--------------------------------------------------------------------------------
-- Weapon For Kamikaze
-- Original Carnage Contest Weapon
-- Script by DC, September 2009, www.UnrealSoftware.de
--------------------------------------------------------------------------------
-- Setup Tables
if cc==nil then cc={} end
cc.kamikaze={}
-- Load & Prepare Ressources
cc.allah.gfx_icon=loadgfx("weapons/kamikaze.png") -- Weapon
Icon
setmidhandle(cc.allah.gfx_icon)
cc.allah.gfx_wpn=loadgfx("weapons/belt.bmp") -- Weapon Image
setmidhandle(cc.kamikaze.gfx_wpn)
--------------------------------------------------------------------------------
-- Weapon: Kamikaze
--------------------------------------------------------------------------------
cc.kamikaze.id=addweapon("cc.kamikaze","kamikaze!",cc.kamikaze.gfx_icon,1,2) -- Add Weapon (1 use, first in
round 2)
function cc.kamikaze.draw()
-- Draw
setblend(blend_alpha)
setalpha(1)
setcolor(255,255,255)
setrotation(0)
hudinfo("Attention: Hitting [Space] with this weapon will kill your whole team!")
-- Draw at each player of team
players=playertable()
for i=1,#players,1 do
if getplayerhealth(players[i])>0 and getplayerteam(players[i])==getplayerteam(0) then
setscale(getplayerdirection(players[i]),1)
drawimage(cc.kamikaze.gfx_wpn,getplayerx(players[i]),getplayery(players[i])+7)
end
end
end
function cc.kamikaze.attack(attack) --
Attack
if (weapon_shots<=0) then
if (attack==1) then
-- No more weapon switching!
useweapon(0)
weapon_shots=weapon_shots+1
-- Suicide for each player of team
players=playertable()
for i=1,#players,1 do
if getplayerhealth(players[i])>0 and getplayerteam(players[i])==getplayerteam(0)
then
-- Suicide
playerdamage(players[i],100000)
-- Cause damage
arealdamage(getplayerx(players[i]),getplayery(players[i]),120,90)
-- Destroy terrain
terrainexplosion(getplayerx(players[i]),getplayery(players[i]),50,1)
-- Crater
grey=math.random(0,40)
if math.random(0,1)==1 then
terrainalphaimage(gfx_crater150,getplayerx(players[i]),getplayery
(players[i]),math.random(6,9)*0.1,grey,grey,grey)
else
And heres another,I changed it in CC Original
1
scripts/CC Original/weapons/Kamikaze.lua
And the names of image is changed into kamikaze.png
but the name of belt is remained UNCHANGED.
REPLY NOW!!!