Jump to content
Sign in to follow this  
Meusali

Indestructable streetlamps?

Recommended Posts

I have added 3 streetlamps (using the editor upgrade) to a multiplayer ctf map that contains tanks etc.

Is it possible to make the streetlamp indestructable so that they cannot be knocked over by tanks, or blown up?

Thx for any help

Share this post


Link to post
Share on other sites

you could try   lampname setdamage 0 and put in a loop using script. something like this.

put this in your lamp init line: [this] exec "nodamage.sqs"

do it or all three lamps

In script try this

_lamp = _this select 0

#loop

_lamp setdammage 0

goto "loop"

I'm not at may Home PC just now so I could be wrong.

Share this post


Link to post
Share on other sites

You might be able to edit the config.cpp. Change the value for armor. It works for cars-I don't know whether it would work for this.

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_lamp = _this select 0

#loop

_lamp setdammage 0

goto "loop"

<span id='postcolor'>

That will lag the game down, make it:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_lamp = _this select 0

#loop

~0.5

_lamp setdammage 0

goto "loop"

<span id='postcolor'>

As for the cpp edit, that will only work if all the players in the server will have to have the version you edited.

RED

Share this post


Link to post
Share on other sites

ok, ive tried making a script file with the following code

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">_lamp = _this select 0

#loop

~0.5

_lamp setdammage 0

goto "loop"

<span id='postcolor'>

And executing it in the streetlamps init field by entering

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[this] exec "nodamage.sqs"<span id='postcolor'>

Nothing seems to happen, street lamp still falls over when hit by a tank.

Share this post


Link to post
Share on other sites

Try executing it with the name of the lamp.

RED

Share this post


Link to post
Share on other sites

Like this?

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[StreetLamp 2] exec "nodamage.sqs"<span id='postcolor'>

Share this post


Link to post
Share on other sites

I don't think that setdammaging a streetlamp will make it rigid again. There was a big Post on this at OFPEC about those Target E thingys. I don't think they ever did solve that problem...

wow.gif PEACE

Share this post


Link to post
Share on other sites

How about making it so that the vehicles do not clip with the Street Lamp. Like the flag poles, where vehicles just go straight through them.

Is that possible to do?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×