Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re:lighting code, question
- To:
- Subject: re:lighting code, question
- From: "tuan (t.) doan" <>
- Date: Mon, 20 Nov 1995 23:33:00 -0600
- Cc: crossfire (at) ifi.uio.no
- Sender: "tuan (t.) doan" <>
- X400-Content-Type: P2-1984 (2)
- X400-MTS-Identifier: [/PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/;bcars735.b.118:21.10.95.13.00.24]
- X400-Originator: /dd.id=1627294/g=tuan/i=t/s=doan/@bnr.ca
- X400-Received: by mta bnr.ca in /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Tue, 21 Nov 1995 08:04:35 -0500
- X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Tue, 21 Nov 1995 08:00:24 -0500
- X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Sun, 19 Nov 1995 00:33:00 -0500
In message "lighting code, question",
'' writes:
>
>
> Hi all, I have been working on a lighting code for CF. Right
> now I am near the finishing stages of a "development" code,
> but one thing needs doing still--treatment of effects of
> lighting on monsters.
>
> Right now, line-of-sight (los) is only calculated for the
> players (I wont describe the scheme here). For monsters,
> I imagined that if the monster object (mon) had
> QUERY_FLAG(mon, FLAG_SEE_INVIS) no effect by lighting
> occured. Otherwise, some treatment of the monster wisdom
> flag could be done to limit monster detection of players.
>
> Of course, I am only guessing at the use of monster wisdom
> here. Could some knowledgable individual inform me how
> the code goes about treating monster detection of players?
> Is mon->stats.Wis the radius of detection? How does stealth
> effect monster detection? I notice that Wis==0 monsters
> still detect players! Does this mean that there is a
> (default) minimum detection radius?
>
> thanks, b.t.
Good grief man, don't you have a job! ;-) Are you using bitmap masking
(ala stipple) to display various lighting intensity? That way both mono
and color works out ok and you don't have to create new bitmaps.
Regards.