pev变量说明.docx

上传人:b****6 文档编号:15313482 上传时间:2023-07-03 格式:DOCX 页数:14 大小:22.17KB
下载 相关 举报
pev变量说明.docx_第1页
第1页 / 共14页
pev变量说明.docx_第2页
第2页 / 共14页
pev变量说明.docx_第3页
第3页 / 共14页
pev变量说明.docx_第4页
第4页 / 共14页
pev变量说明.docx_第5页
第5页 / 共14页
pev变量说明.docx_第6页
第6页 / 共14页
pev变量说明.docx_第7页
第7页 / 共14页
pev变量说明.docx_第8页
第8页 / 共14页
pev变量说明.docx_第9页
第9页 / 共14页
pev变量说明.docx_第10页
第10页 / 共14页
pev变量说明.docx_第11页
第11页 / 共14页
pev变量说明.docx_第12页
第12页 / 共14页
pev变量说明.docx_第13页
第13页 / 共14页
pev变量说明.docx_第14页
第14页 / 共14页
亲,该文档总共14页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

pev变量说明.docx

《pev变量说明.docx》由会员分享,可在线阅读,更多相关《pev变量说明.docx(14页珍藏版)》请在冰点文库上搜索。

pev变量说明.docx

pev变量说明

Hereisalistofeverypevvariable,theirreturntype,andadescription.TestedValueisprintoutofmyentity'svaluesonaquicktest.

Chartisnotyetcomplete.

#

Variable

S

F

I

TestedValue

Description

0

pev_string_start

 

 

 

 

Placeholder.Everythingtillpev_string_endarestringvariables.

1

pev_classname

 

 

 

player

Typeofentity(Valueofthiscontrolswhatcodehandlestheentity'sthinkatpev_nextthink)

2

pev_globalname

 

 

 

 

Thisisthenameoftheglobalvariable(setbyanenv_globalentity)thatcanbeusedtocontrolthestateoftheentity.

3

pev_model

 

 

 

models/player/terror/terror.mdl

Themodeloftheentity

4

pev_target

 

 

 

 

Entitythatthisentityishandling

5

pev_targetname

 

 

 

 

Thenamegiventothisentitythatanotherentitysearchesfortohandleit

6

pev_netname

 

 

 

GHW_Chronic

PlayerorNPCname

7

pev_message

 

 

 

 

?

8

pev_noise

 

 

 

 

Noisevariablesdodifferentthingsfordifferentents.

9

pev_noise1

 

 

 

 

Thisisthemovesoundfordoors.

10

pev_noise2

 

 

 

 

Thisisthestopsoundfordoors.

11

pev_noise3

 

 

 

 

 

12

pev_string_end

 

 

 

 

Placeholder.Endofstringvariables.

13

pev_edict_start

 

 

 

 

Placeholder.Startofedictvariables.

14

pev_chain

 

 

 

0

 

15

pev_dmg_inflictor

 

 

 

0

Theentitythatdealtdamagetothisentity.(Ifagundealsthedamagethegun'spev_owneristheentitywhodealtthedamage).

16

pev_enemy

 

 

 

0

 

17

pev_aiment

 

 

 

0

Containstheentity'sindexthatthisentityisfollowing.Thisisonlyineffectifthisent'smovetypeisMOVETYPE_FOLLOW.

Example:

set_pev(ent,pev_movetype,MOVETYPE_FOLLOW);

set_pev(ent,pev_aiment,index);

18

pev_owner

 

 

 

0

Parentofthisentity.Forweaponsthisentityistheplayer.

19

pev_groundentity

 

 

 

0

 

20

pev_euser1

 

 

 

0

 

21

pev_euser2

 

 

 

0

 

22

pev_euser3

 

 

 

0

 

23

pev_euser4

 

 

 

0

 

24

pev_edict_end

 

 

 

 

Placeholder.Endofedictvariables.

25

pev_float_start

 

 

 

 

Placeholder.Startoffloatvariables.

26

pev_impacttime

 

 

 

0.000000

 

27

pev_starttime

 

 

 

0.000000

 

28

pev_idealpitch

 

 

 

0.000000

 

29

pev_ideal_yaw

 

 

 

0.000000

 

30

pev_pitch_speed

 

 

 

0.000000

 

31

pev_yaw_speed

 

 

 

0.000000

 

32

pev_ltime

 

 

 

0.000000

 

33

pev_nextthink

 

 

 

0.000000

Thetime(inrelevancetoget_gametime())ofthenexttimethisentity'sthinkwillbecalled.

34

pev_gravity

 

 

 

1.000000

0.0=Nogravity

1.0=NormalGravity

Valuesarenotlimitedto0.0through1.0

35

pev_friction

 

 

 

1.000000

0.0=NoFriction(0Acceleration)

1.0=NormalFriction

>1.0=FasterAcceleration+FasterHalt

negativevalue=ConstantAccelerationinbackwardsdirection

36

pev_frame

 

 

 

158.772949

Theframeofthecurrentsequenceofthecurrentmodel(Startsatframe0.0)

37

pev_animtime

 

 

 

7.223107

Thetimetostarttheanimationofthesequence(ifsequenceisrunningthisissettoget_gametime())

38

pev_framerate

 

 

 

1.000000

Theframespersecond(FPS)thecurrentsequenceisplayingat

39

pev_scale

 

 

 

0.000000

Doesn'taffectmodels.Usedforsuchthingsasenv_sprites(storesspritescale)orenv_shooter(storesgibsize)

40

pev_renderamt

 

 

 

0.000000

Theintensityoftherendereffects(0=noeffect255=fulleffect).

Don'tthinkthevalueofthismatterswhentherendermodeiskRenderNormal(0)

41

pev_health

 

 

 

100.000000

Healthoftheentity.Whenitreaches0itisdestroyed.

42

pev_frags

 

 

 

0.000000

#offrags

ScoreboardchangeswhentheScoreInfomessageiscalled.

43

pev_takedamage

 

 

 

2.000000

Damagemultiplyer

0.0=Invincible

2.0=NormalDamage

44

pev_max_health

 

 

 

100.000000

Alwayssetto100butdoesn'teffectentities.Ithinkitisjustforreference.Playersalwaysrespawnat100.0butIdon'tknowifnon-playerentitiesspawnwiththismuchHPwhenDLL_Func_Spawniscalled.willhavetotest.

45

pev_teleport_time

 

 

 

0.000000

?

-Countsbackfrom2000.0wheneverIgetoutofthewater(whenthegamemovesyourplayerupwardstorepresentclimbingout).

46

pev_armortype

 

 

 

0.000000

Typeofarmortheentityhas(InCSthisistheCsArmorTypeconstants).

47

pev_armorvalue

 

 

 

0.000000

Amountofarmortheentityhas.

48

pev_dmg_take

 

 

 

0.000000

Amountofdamageentitywashitfor.

49

pev_dmg_save

 

 

 

0.000000

 

50

pev_dmg

 

 

 

2.000000

Damagetypethatthisentitygothitby(DMG_constants).

51

pev_dmgtime

 

 

 

0.000000

 

52

pev_speed

 

 

 

0.000000

Notforplayers.Effectschangefromentitytoentity(IE:

usedfordoorswingspeed)

53

pev_air_finished

 

 

 

19.223108

Default:

get_gametime()+12.0

Numberissetaccordingtothepreviousequationeverythinkunlessaplayerissubmergedunderwater.

if(get_gametime()==pev_air_finished+x)

    {DealDamage}

wherexisanypositiveintegerincluding0.

54

pev_pain_finished

 

 

 

0.000000

?

-Guesswouldbethatthisissettoagametimewhenyouaresetonfireorsomethingofthesort.

55

pev_radsuit_finished

 

 

 

0.000000

?

-GuesswouldbethatthisissettoagametimeforhowlongtheradiationsuitlastsformapslikerockinTFC.

56

pev_maxspeed

 

 

 

250.000000

Thinkusesthistodeterminethemaxspeedaplayerormonstercanmoveatwhenfullyaccelerated.

57

pev_fov

 

 

 

90.000000

FieldofView

Determineshowmanydegreesofviewfitonthescreen.

Defaultforplayers:

90.0

Smallernumbersareusedforscoping.

58

pev_flFallVelocity

 

 

 

0.000000

velocity[2]*=-1.0

OppositeofZvelocity(FallingSpeed)

59

pev_fuser1

 

 

 

0.000000

 

60

pev_fuser2

 

 

 

0.000000

[InCS]:

Whenjumpbuttonispressedthisvariableissetto1320.0anddecreamentsto0.0.Withdefaultfrictionwhenthisvariablereads0.0theplayershouldhavetheabilitytoacceleratelikenormalafterlandingfromajump.Thisvariabledoesnotaffectthisoccurrencebutmonitorsit.

61

pev_fuser3

 

 

 

0.000000

 

62

pev_fuser4

 

 

 

0.000000

 

63

pev_float_end

 

 

 

 

Placeholder.Endoffloatvariables.

64

pev_int_start

 

 

 

 

Placeholder.Startofintegervariables

65

pev_fixangle

 

 

 

0.000000

Whensetto1itforcestheclienttoupdateitsanglestotheonessetinpev_viewanglesduringthenextplayerthink

66

pev_modelindex

 

 

 

156.000000

Modelindexreturnedbyprecache_model.

67

pev_viewmodel

 

 

 

187258336.000000

Usepev_viewmodel2

68

pev_weaponmodel

 

 

 

187258352.000000

Usepev_weaponmodel2

69

pev_movetype

 

 

 

3.000000

MovementTypeConstant.Furtherdetaillater

70

pev_solid

 

 

 

3.000000

SolidTypeConstant.

SOLID_NOT=Noclipping,Notouching,Nohitboxes

SOLID_TRIGGER=Noclipping,Touching,Nohitboxes

SOLID_BBOX=Clipping,Touching,Hitboxes

SOLID_SLIDEBOX=Clipping,Touching,Hitboxes,Frictionwhenmoving,Playersandmonstersusethis

SOLID_BSP=NoClipping,Touching,Hitboxes

71

pev_skin

 

 

 

0.000000

Selectstheskinthemodeldisplays.Mostmodelsonlyhave1skin(skin0).

72

pev_body

 

 

 

1.000000

Partofamodel.

pev_body=1showsbackpackinCS

73

pev_effects

 

 

 

0.000000

 

74

pev_light_level

 

 

 

51.000000

Amountoflightshiningontheentity(Usedformodelrendering)(0=Nolight180=FullyLit).

75

pev_sequence

 

 

 

19.000000

Primarysequencetheentityruns

Ifplayerormonsterthisisthesequenceofthelowerbodyparts(IE:

run/sequence4inCS)

76

pev_gaitsequence

 

 

 

1.000000

Secondarysequenceformonstersandplayersthatshowsupperbodyanimation(IE:

ref_aim_mp5/sequence36inCS)

77

pev_rendermode

 

 

 

0.000000

Thetypeofrenderingforthemodel/howthemodelisrendered.

78

pev_renderfx

 

 

 

0.000000

Theeffectsaddedtothemodelrendering.

79

pev_weapons

 

 

 

-1610481664.000000

 

80

pev_deadflag

 

 

 

0.000000

Flagsdealingwithplayer'sdeathstatus

0-alive

1-dead

2-respawning

81

pev_button

 

 

 

0.000000

Bitflagforwhatbuttonsarecurrentlybeingheldbytheplayer

IN_constants

82

pev_impulse

 

 

 

0.000000

Whensetitactivatesimpulsecommandsduringthink(Resetsto0.0afterimpulseoccurs)(Impulsescanbefoundinplayer.cpp).

Non-Modspecificimpulses:

99-Valve/SierraLogo

100-Flashlight

201-LogoSpray

83

pev_spawnflags

 

 

 

0.000000

Bitflagofentity'sspawnflags(SF_constants(hlsdk_const.inc)).

84

pev_flags

 

 

 

520.000000

bitflagofentityflags(FL_constants)

85

pev_colormap

 

 

 

1.000000

 

86

pev_team

 

 

 

0.000000

Teamoftheentity(Usemodspecificteamconstants).Ithinkitcanonlybeextractedasanintwhichmaybewhyitisdisplaying0.0onmyreadingeventhoughIwasontheTteam.

87

pev_waterlevel

 

 

 

0.000000

0-Notinwater

1-Waiding

2-Mostlysubmerged

3-Completelysubmerged

88

pev_watertype

 

 

 

-1.000000

-1-Nowater

-3-Water

-4-Slim

-5-Lava

89

pev_playerclass

 

 

 

0.000000

NotusedinCS.

Classconstantinothergames(IE:

DODC_GARAND/TFC_PC_SCOUT)

90

pev_weaponanim

 

 

 

1.000000

Sequenceofthev_model.

91

pev_pushmsec

 

 

 

0.000000

 

92

pev_bInDuck

 

 

 

0.000000

0-Notintheprocessofducking

1-Intheprocessofducking

Note:

iffullycrouchedthisreturns0

93

pev_flTimeStepSound

 

 

 

260.000000

?

-Startsat400.0anddecreasesto0.0thenresetsto400.0andrepeatsconstantly.

94

pev_flSwimTime

 

 

 

0.000000

?

95

pev_flDuckTime

 

 

 

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 人文社科 > 法律资料

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2