Home   Help Search Login Register  

Author Topic: Bulletproof glass?  (Read 2085 times)

0 Members and 1 Guest are viewing this topic.

Offline Kronzky

  • Members
  • *
    • My OFP/VBS Scripts/Missions/Addons
Bulletproof glass?
« on: 07 Jun 2006, 17:43:19 »
Would it be possible to create something like 'bulletproof glass'?

Something the AI could see me through, and would try to shoot through, but that turns out to be indestructable.

I'm still fairly new to addon-making, but I suspect that, since the AI always 'magically' knows the armor value of an item, that it wouldn't bother shooting at something that's indestructable.

I guess it would add a touch of realism to cars, but the main reason I'm asking is that it would be useful to have something like that for testing missions and scripts - a sort of 'invisible shield' to observe the behaviour of the AI without getting killed all the time. Sort of like the 'god mode' you have in other games for testing purposes.

Offline oyman

  • Members
  • *
  • king of pings
Re: Bulletproof glass?
« Reply #1 on: 09 Jun 2006, 00:24:19 »
Really easy to do, it is just that the AI would know you are there but wont fire at you. If you made a box with the back cut out the AI would run around to the back to kill you.

Offline Kronzky

  • Members
  • *
    • My OFP/VBS Scripts/Missions/Addons
Re: Bulletproof glass?
« Reply #2 on: 09 Jun 2006, 01:28:35 »
Well... That's the whole point of the excecise... To have the AI fire at me, but not being able to kill me...

Glass is easy. Indestructable wall is easy. But an indestructable glass wall, that they would try to fire through - I'm afraid that might be impossible - at least judging from the lack of responses so far... ;)

Offline SniperAndy

  • Members
  • *
    • VBS Community
Re: Bulletproof glass?
« Reply #3 on: 09 Jun 2006, 01:58:37 »
Hey Kronzky... small world isn't it...

you can either just make your unit OPFOR as well while editing the mission.
or you set yourself captive by adding this to your units init line:

Code: [Select]
name SetCaptive true
Of course then they wont fire at you.

there is also a so called "god mode":

Code: [Select]
name allowdammage false
and "true" makes you hurt again ;)

« Last Edit: 09 Jun 2006, 02:03:36 by SniperAndy »

Offline Kronzky

  • Members
  • *
    • My OFP/VBS Scripts/Missions/Addons
Re: Bulletproof glass?
« Reply #4 on: 09 Jun 2006, 02:11:16 »
Hey Kronzky... small world isn't it...
LOL... Admit it - you're stalking me! ;)


Quote
there is also a so called "god mode":

Code: [Select]
name allowdammage false

allowdamage it is!!!
That does exactly what I was looking for!
I still had it in the back of my mind that there used to be something like that, but somehow I thought BIS had taken it out at some point.
Guess I should've verified that before thinking up some convoluted plan about simulating "god mode"...

THANKS!

Edit: HAH - the back of my mind wasn't so wrong after all!
I just booted up my old, trusty OFP, and indeed, in there it doesn't work anymore!
Then I checked my VBS documentation, and it seems that it's been put back in there in V2.08. That's why it wasn't even in the normal scripting documentation. Phew... Lucky me...
« Last Edit: 09 Jun 2006, 02:23:47 by Kronzky »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re: Bulletproof glass?
« Reply #5 on: 09 Jun 2006, 14:00:01 »
allowDammage is an obsolete command and was removed from the engine.....afaik.

It was removed to prevent cheating I think.


Planck
I know a little about a lot, and a lot about a little.

Offline Kronzky

  • Members
  • *
    • My OFP/VBS Scripts/Missions/Addons
Re: Bulletproof glass?
« Reply #6 on: 09 Jun 2006, 15:20:33 »
allowDammage is an obsolete command and was removed from the engine.....afaik.

It was removed to prevent cheating I think.

Yeah, it was removed fairly early (1.1 or 1.2 or so).

But VBS1 (which I didn't mention that I got) put it back in a while ago.

Since cheaters aren't really an issue there...;)

Offline SniperAndy

  • Members
  • *
    • VBS Community
Re: Bulletproof glass?
« Reply #7 on: 09 Jun 2006, 18:14:44 »
That's why I put it up for you Kronzky.
Didn't know it was removed in OFP...my bad.