Author Topic: Bomb explosions  (Read 5299 times)

0 Members and 2 Guests are viewing this topic.

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
in C-like languages "==" is the boolean equals operator, "=" is the assignment operator

so

"if (variable1 = variable2)" not only returns true unless variable2 == 0, but it assigns the value of variable2 to variable1 -- a nasty little typo that busts code

"if (var1 == var2)" is the correct syntax



----------
sometimes assignments are wanted in if statements -- for example

Code: [Select]

if ((pipe = popen(command, "r")) == NULL)
{
   //error condition
}


(that's opening a "pipe" which is a communications channel between a program and another program it calls -- this one happens to be read -- say it's a program that parses the output of another program and makes it a more readable format -- that's what you use pipes for)
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline diamondgeezer

Nice try, but I still don't know how to code :sigh:

 
Quote
Originally posted by NecroBob
(I believe, I don't really know for sure)
(remember, I know nothing about programming though,
I know, I know! Can't you just use #define ENABLE_GEOMOD = TRUE when compiling?!
(Disclaimer: Sheeeesh... geomods have been discussed to death and on many, many occasions ever since RF was in production. All the fantasies on VBB about getting geo-mod for FS3... It won't happen with this engine!)

And to get back to topic for a change, how about it? Applying a glowmapped damage decal on the bomb impact point? If it was an ani, it could fade away nicely and smoothly too - has glowing been enabled for anis yet?
The nick is not a typo, it's a pun.

 
why can't I just have a million dollars?
lmao
forgive me, at times I'm not known for tact, as was one of these.  I was just thinking out loud, I suppose I take my gaming at face value.  sue me :nod:

a glowmap .ani sounds fine, I suppose.  run with it!

Bob
sleepy hippie
Hippie. n. a long-haired unconventionally dressed young person

 

Offline Bobboau

  • Just a MODern kinda guy
    Just MODerately cool
    And MODest too
  • 213
"has glowing been enabled for anis yet"

yes
Bobboau, bringing you products that work... in theory
learn to use PCS
creator of the ProXimus Procedural Texture and Effect Generator
My latest build of PCS2, get it while it's hot!
PCS 2.0.3


DEUTERONOMY 22:11
Thou shalt not wear a garment of diverse sorts, [as] of woollen and linen together

  

Offline diamondgeezer

Quote
Originally posted by Terorist
And to get back to topic for a change, how about it? Applying a glowmapped damage decal on the bomb impact point? If it was an ani, it could fade away nicely and smoothly too - has glowing been enabled for anis yet?


You're still missing something important - at the mo, decals tend to knacker the engine (and that's with pcx files, let alone anis). AFIK, it's uncertain as to whether the code can be sufficiently optimised.

 
Quote
Originally posted by diamondgeezer
You're still missing something important - at the mo, decals tend to knacker the engine (and that's with pcx files, let alone anis). AFIK, it's uncertain as to whether the code can be sufficiently optimised.
I know about it, and I was just trying to raise discussion about that - can it be done? I just threw the idea out in the open... and now that it's done, I'm withdrawing.
The nick is not a typo, it's a pun.