-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds tree and gift models to lobby during holiday season
Tree model from r5 and modified by 4Volt other models are from 4Volt Co-authored-by: EM4Volts <[email protected]>
- Loading branch information
1 parent
bdb73b1
commit 68a5c2b
Showing
18 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Northstar.Custom/mod/materials/models/northstartree/lightsflicker.vmt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"UnlitTexture" | ||
{ | ||
$basetexture "models/northstartree/lightsflicker" | ||
$color "[1.5 1.5 1.5]" | ||
|
||
Proxies | ||
{ | ||
|
||
TextureScroll | ||
{ | ||
texturescrollvar $basetexturetransform | ||
texturescrollrate 0.33 | ||
texturescrollangle 45 | ||
} | ||
|
||
} | ||
|
||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
25 changes: 25 additions & 0 deletions
25
Northstar.Custom/mod/scripts/vscripts/sh_event_models.gnut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
global function EventModelsInit | ||
|
||
void function EventModelsInit() | ||
{ | ||
PrecacheModel( $"models/northstar/desertlands_holiday_tree.mdl" ) | ||
PrecacheModel( $"models/northstar/floor.mdl" ) | ||
|
||
#if SERVER | ||
|
||
if( !GetConVarBool( "ns_show_event_models" ) ) | ||
return | ||
|
||
table timeParts = GetUnixTimeParts() | ||
int month = expect int( timeParts[ "month" ] ) | ||
int day = expect int( timeParts[ "day" ] ) | ||
|
||
|
||
if( ( ( month == 12 ) && ( day >= 18 ) ) || ( ( month == 1 ) && ( day <= 6 ) ) ) | ||
{ | ||
CreatePropDynamic( $"models/northstar/desertlands_holiday_tree.mdl", < -60, 740, 30 >, < 0, 0, 0 >, SOLID_VPHYSICS, 1000 ) | ||
CreatePropDynamic( $"models/northstar/floor.mdl", < -60, 740, 30 >, < 0, 0, 0 >, SOLID_VPHYSICS, 1000 ) | ||
} | ||
#endif | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
Northstar.Custom/mod/scripts/vscripts/ui_ns_custom_mod_settings.gnut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
global function NSCustomModSettings | ||
|
||
void function NSCustomModSettings(){ | ||
ModSettings_AddModTitle( "Northstar Custom" , 2 ) | ||
ModSettings_AddModCategory( "Event Models" ) | ||
ModSettings_AddEnumSetting( "ns_show_event_models", "Show Event Models", [ "#SETTING_OFF", "#SETTING_ON" ], 2 ) | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"Postload": { | ||
"mp_weapon_shotgun_doublebarrel.rpak": "common.rpak" | ||
"mp_weapon_shotgun_doublebarrel.rpak": "common.rpak", | ||
"leaves.rpak": "common.rpak", | ||
"tree_stump.rpak": "common.rpak", | ||
"bt.rpak": "common.rpak", | ||
"giftwrap.rpak": "common.rpak", | ||
"snow.rpak": "common.rpak" | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.