Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
049bbce5
Commit
049bbce5
authored
9 years ago
by
RedEnchilada
Browse files
Options
Downloads
Patches
Plain Diff
Add data to slope struct that will be useful later
parent
6026fa42
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!22
Slopes and stuff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/r_defs.h
+13
-2
13 additions, 2 deletions
src/r_defs.h
with
13 additions
and
2 deletions
src/r_defs.h
+
13
−
2
View file @
049bbce5
...
@@ -233,11 +233,19 @@ typedef struct secplane_t
...
@@ -233,11 +233,19 @@ typedef struct secplane_t
fixed_t
a
,
b
,
c
,
d
,
ic
;
fixed_t
a
,
b
,
c
,
d
,
ic
;
}
secplane_t
;
}
secplane_t
;
//
Kalaron
Slopes
// Slopes
#ifdef ESLOPE
#ifdef ESLOPE
typedef
enum
{
SL_NOPHYSICS
=
1
,
// Don't do momentum adjustment with this slope
SL_NODYNAMIC
=
1
<<
1
,
// Slope will never need to move during the level, so don't fuss with recalculating it
SL_ANCHORVERTEX
=
1
<<
2
,
// Slope is using a Slope Vertex Thing to anchor its position
SL_VERTEXSLOPE
=
1
<<
3
,
// Slope is built from three Slope Vertex Things
}
slopeflags_t
;
typedef
struct
pslope_s
typedef
struct
pslope_s
{
{
UINT16
id
;
// The number of the slope, mostly used for netgame syncing purposes
// --- Information used in clipping/projection ---
// --- Information used in clipping/projection ---
// Origin vector for the plane
// Origin vector for the plane
vector3_t
o
;
vector3_t
o
;
...
@@ -262,7 +270,10 @@ typedef struct pslope_s
...
@@ -262,7 +270,10 @@ typedef struct pslope_s
struct
line_s
*
sourceline
;
// The line that generated the slope
struct
line_s
*
sourceline
;
// The line that generated the slope
fixed_t
extent
;
// Distance value used for recalculating zdelta
fixed_t
extent
;
// Distance value used for recalculating zdelta
UINT8
refpos
;
// 1=front floor 2=front ceiling 3=back floor 4=back ceiling (used for dynamic sloping) 0=disabled
UINT8
refpos
;
// 1=front floor 2=front ceiling 3=back floor 4=back ceiling (used for dynamic sloping)
UINT8
flags
;
// Slope options
struct
mobj_s
**
vertices
;
// List should be three long for slopes made by vertex things, or one long for slopes using one vertex thing to anchor
struct
pslope_s
*
next
;
// Make a linked list of dynamic slopes, for easy reference later
struct
pslope_s
*
next
;
// Make a linked list of dynamic slopes, for easy reference later
}
pslope_t
;
}
pslope_t
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment