2 questions

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

2 questions

Post by Barttje »

Hello everyone,

I have 2 questions:

1.) How can i set off the falling damage?
&
2.) What is the model of this picture, its got something to do with a beam:
img: http://img161.imageshack.us/img161/8576/shot4sk.jpg

tnx
Last edited by Barttje on Fri Mar 17, 2006 5:50 pm, edited 1 time in total.
CTpenok
Corporal
Posts: 41
Joined: Tue Oct 21, 2003 10:01 am
Location: Netherlands
Contact:

Post by CTpenok »

2.) What is the model of this picture, its got something to do with a beam:
Isn't it just a cratelid ?
You can find it in Radiant under Static ( static/item/cratelid2 - static/cratelid2.tik )
Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

tnx it is him :)

And does someone kown the awnser of question 1?
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

dmflags +=8
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

i don't get it.. :?
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

set dmflags 8, (its a cvar) if u already hhave dmflags set to a number, add 8.
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

okeey :? I don't still get it...
where I have to set it? can you show me some script?
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

its a cvar.

type it in console or type it in your config.
User avatar
Kalti
Major
Posts: 325
Joined: Sun Mar 16, 2003 11:46 am
Contact:

Post by Kalti »

In MOHRadiant I believe you can select the texture/brushface [CTRL]+[SHIFT] and then press "S" to open up the Surface Properties window. Next check "noimpact" under Surface Flags...

Dunno if it's the proper way of doing it cause I thought there was a surfaceflag "nofallingdamage" but if not then it's just the whisky playing up :D
Last edited by Kalti on Fri Mar 17, 2006 6:42 pm, edited 1 time in total.
Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

Kalti wrote:In MOHRadiant I believe you can select the texture/brushface [CTRL]+[SHIFT] and then press "S" to open up the Surface Properties window. Next check "noimpact" under Surface Flags...

Dunno if it's the proper way of doing it cause I thought there was a surfaceflag "nofallingdamage" but if not then it's just the whiskey playing up :D
i'm doing it in notepad :)

-
Elgan wrote:its a cvar.

type it in console or type it in your config.
Can it also in a *.scr file?
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

oh nver mind, i just figured it out :) but tnx guys :D
User avatar
Kalti
Major
Posts: 325
Joined: Sun Mar 16, 2003 11:46 am
Contact:

Post by Kalti »

Good to hear but how did you handle it ?
Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

well, in my map script there is standing

setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" "
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""


so I put setcvar "dmflags" "8" under it like

setcvar "g_obj_alliedtext1" ""
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "dmflags" "8"


:) and it works :D
User avatar
Kalti
Major
Posts: 325
Joined: Sun Mar 16, 2003 11:46 am
Contact:

Post by Kalti »

Ah... you wanted it set for the whole map :D
Image
Barttje
Sergeant Major
Posts: 111
Joined: Sat Aug 20, 2005 8:52 pm

Post by Barttje »

yeah :D
Post Reply