You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b9e66f9
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: pkg/demoinfocs/common/common_test.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ import (
12
12
)
13
13
14
14
funcTestGrenadeProjectileUniqueID(t*testing.T) {
15
-
assert.NotEqual(t, NewGrenadeProjectile().UniqueID(), NewGrenadeProjectile().UniqueID(), "UniqueIDs of different grenade projectiles should be different")
15
+
assert.NotEqual(t, NewGrenadeProjectile(1).UniqueID(), NewGrenadeProjectile(2).UniqueID(), "UniqueIDs of different grenade projectiles should be different")
assert.Equal(t, EqClassUnknown, NewEquipment(EqUnknown).Class(), "EqUnknown should have the class EqClassUnknown")
42
-
assert.Equal(t, EqClassPistols, NewEquipment(EqP2000).Class(), "EqP2000 should have the class EqClassPistols")
43
-
assert.Equal(t, EqClassPistols, NewEquipment(EqRevolver).Class(), "EqRevolver should have the class EqClassPistols")
44
-
assert.Equal(t, EqClassRifle, NewEquipment(EqG3SG1).Class(), "EqG3SG1 should have the class EqClassRifle")
41
+
assert.Equal(t, EqClassUnknown, NewEquipment(EqUnknown, 1).Class(), "EqUnknown should have the class EqClassUnknown")
42
+
assert.Equal(t, EqClassPistols, NewEquipment(EqP2000, 1).Class(), "EqP2000 should have the class EqClassPistols")
43
+
assert.Equal(t, EqClassPistols, NewEquipment(EqRevolver, 1).Class(), "EqRevolver should have the class EqClassPistols")
44
+
assert.Equal(t, EqClassRifle, NewEquipment(EqG3SG1, 1).Class(), "EqG3SG1 should have the class EqClassRifle")
45
45
}
46
46
47
47
funcTestEquipment_UniqueID(t*testing.T) {
48
-
assert.NotEqual(t, NewEquipment(EqAK47).UniqueID2(), NewEquipment(EqAK47).UniqueID2(), "UniqueIDs of different equipment instances should be different")
48
+
assert.NotEqual(t, NewEquipment(EqAK47, 1).UniqueID2(), NewEquipment(EqAK47, 2).UniqueID2(), "UniqueIDs of different equipment instances should be different")
Copy file name to clipboardExpand all lines: pkg/demoinfocs/common/inferno_test.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ import (
13
13
14
14
funcTestInferno_UniqueID(t*testing.T) {
15
15
entity:=new(stfake.Entity)
16
-
assert.NotEqual(t, NewInferno(nil, entity, nil).UniqueID(), NewInferno(nil, entity, nil).UniqueID(), "UniqueIDs of different infernos should be different")
16
+
assert.NotEqual(t, NewInferno(nil, entity, nil, 1).UniqueID(), NewInferno(nil, entity, nil, 2).UniqueID(), "UniqueIDs of different infernos should be different")
Copy file name to clipboardExpand all lines: pkg/demoinfocs/common/player.go
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ type Player struct {
20
20
Inventorymap[int]*Equipment// All weapons / equipment the player is currently carrying. See also Weapons().
21
21
EntityIDint// Usually the same as Entity.ID() but may be different between player death and re-spawn.
22
22
Entity st.Entity// May be nil between player-death and re-spawn
23
-
FlashDurationfloat32// Blindness duration from the flashbang currently affecting the player (seconds)
23
+
FlashDurationfloat32// Effective blindness duration from the flashbang currently affecting the player (seconds). The engine's flash-affected window (e.g. for assist attribution) runs ~1.4x longer; there is no continuous remaining-intensity netprop.
24
24
FlashTickint// In-game tick at which the player was last flashed
25
25
TeamState*TeamState// When keeping the reference make sure you notice when the player changes teams
26
26
TeamTeam// Team identifier for the player (e.g. TeamTerrorists or TeamCounterTerrorists).
0 commit comments