Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → For Snake. ;p
For Snake. ;p
2003-02-09, 4:32 AM #1
Stupid jIRC.

Code:
 buttmat.cog
#  Ahhh... a mat for your butt.
#  ** REMEMBER: mat0 should be set to the mat that the changer
#		surface is already set to.
# 2.9.2002
# [Grismath]
#=============================================================#
symbols
message		activated
surface		switch
surface		changer
material	mat0
material	mat1
material	mat2
material	mat3
int		status=1	local
end
#=============================================================#
code
#-------------------------------
acitvated:
if(GetSenderRef()==switch) {
 for(X = 0; X < 4; X = X + 1) {
  SetSurfaceMat(changer, mat0[status]);
  if(status < 3) {
   status=status+1;
  } else {
   status=0;
  }
 }
}
return;
#-------------------------------
end


[This message has been edited by Lord_Grismath (edited February 09, 2003).]

[This message has been edited by Lord_Grismath (edited February 09, 2003).]
Cordially,
Lord Tiberius Grismath
1473 for '1337' posts.
2003-02-09, 4:56 AM #2
*CoughDefineXcough* [http://forums.massassi.net/html/smile.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-02-09, 5:44 AM #3
erm.. remove few { } from this cog [http://forums.massassi.net/html/smile.gif]
2003-02-09, 5:46 AM #4
for(X = 0; X < 4; X = X + 1) { <-- this line could be delated i thing
2003-02-09, 6:28 AM #5
no, leave those. The number of '{' should equal then number of '}' BTW -
'for(){'
is the same as
'for()
{'

All w/o ''

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-02-09, 7:47 AM #6
Code:
#  Ahhh... a mat for your butt.
#  ** REMEMBER: mat0 should be set to the mat that the changer
#		surface is already set to.
# 2.9.2002
# [Grismath]
#=============================================================#
symbols
message		activated
surface		switch
surface		changer
material	mat0
material	mat1
material	mat2
material	mat3
int		status=1	local
int		x		local
end
#=============================================================#
code
#-------------------------------
activated:
if(GetSenderRef()==switch) {
 for(X = 0; X < 4; X = X + 1) {
  SetSurfaceMat(changer, mat0[status]);
  if(status < 3) {
   status=status+1;
  } else {
   status=0;
  }
 }
}
return;
#-------------------------------
end


Activated was spelled wrong.
And when the moment is right, I'm gonna fly a kite.
2003-02-09, 9:52 AM #7
That too. Boy, we coggers need to learn how to spell. [http://forums.massassi.net/html/tongue.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!