Skip to content

Commit

Permalink
adds tree and gift models to lobby during holiday season
Browse files Browse the repository at this point in the history
Tree model from r5 and modified by 4Volt
other models are from 4Volt
Co-authored-by: EM4Volts <[email protected]>
  • Loading branch information
RoyalBlue1 committed Dec 3, 2023
1 parent bdb73b1 commit 68a5c2b
Show file tree
Hide file tree
Showing 18 changed files with 78 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Northstar.Custom/mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
{
"Name": "ns_force_melee",
"DefaultValue": ""
},
{
"Name": "ns_show_event_models",
"DefaultValue": "1",
"Flags": "ARCHIVE_PLAYERPROFILE"
}
],
"Scripts": [
Expand Down Expand Up @@ -434,6 +439,23 @@
{
"Path": "sh_northstar_safe_io.gnut",
"RunOn": "CLIENT || SERVER || UI"
},
{
"Path": "sh_event_models.gnut",
"RunOn": "( CLIENT || SERVER ) && LOBBY",
"ClientCallback": {
"Before": "EventModelsInit"
},
"ServerCallback": {
"Before": "EventModelsInit"
}
},
{
"Path": "ui_ns_custom_mod_settings.gnut",
"RunOn": "UI",
"UICallback":{
"Before": "NSCustomModSettings"
}
}
],

Expand Down
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 added Northstar.Custom/mod/models/northstar/floor.mdl
Binary file not shown.
25 changes: 25 additions & 0 deletions Northstar.Custom/mod/scripts/vscripts/sh_event_models.gnut
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

}
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 added Northstar.Custom/paks/bt.rpak
Binary file not shown.
Binary file added Northstar.Custom/paks/bt.starpak
Binary file not shown.
Binary file added Northstar.Custom/paks/giftwrap.rpak
Binary file not shown.
Binary file added Northstar.Custom/paks/giftwrap.starpak
Binary file not shown.
Binary file added Northstar.Custom/paks/leaves.rpak
Binary file not shown.
Binary file added Northstar.Custom/paks/leaves.starpak
Binary file not shown.
7 changes: 6 additions & 1 deletion Northstar.Custom/paks/rpak.json
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 added Northstar.Custom/paks/snow.rpak
Binary file not shown.
Binary file added Northstar.Custom/paks/snow.starpak
Binary file not shown.
Binary file added Northstar.Custom/paks/tree_stump.rpak
Binary file not shown.
Binary file added Northstar.Custom/paks/tree_stump.starpak
Binary file not shown.

0 comments on commit 68a5c2b

Please sign in to comment.