If anyone knows Python well I need help.... 0 replies

Please wait...

BrianS

GF Pwns Me!

50 XP

8th July 2003

0 Uploads

50 Posts

0 Threads

#1 16 years ago

I am wondering if anyone can use this to create a probe that does damage... mybe even EMP damage..everytime I edit somethin in the probe.py(like add damage and damage ratios) the game crashes...why is that?or mybe adding guidance like a torpedo if possible:

import App import Multiplayer.SpeciesToShip

def GetShipStats(): kShipStats = { "FilenameHigh": "data/Models/Misc/Probe/probe.NIF", "Name": "Probe", "HardpointFile": "probe", "Species": Multiplayer.SpeciesToShip.PROBE } return kShipStats

def LoadModel(bPreLoad = 0): pStats = GetShipStats()

# Create the LOD info if (not App.g_kLODModelManager.Contains(pStats["Name"])): # Params are: File Name, PickLeafSize, SwitchOut Distance, # Surface Damage Res, Internal Damage Res, Burn Value, Hole Value, # Search String for Glow, Search string for Specular, Suffix for specular pLODModel = App.g_kLODModelManager.Create(pStats["Name"]) pLODModel.AddLOD(pStats["FilenameHigh"], 10, 200.0, 0.0, 2.0, 50, 300, "_glow", None, None)

# kDebugObj = App.CPyDebug() if (bPreLoad == 0): pLODModel.Load() # kDebugObj.Print("Loading " + pStats["Name"] + "\n") else: pLODModel.LoadIncremental() # kDebugObj.Print("Queueing " + pStats["Name"] + " for pre-loading\n")

def PreLoadModel(): LoadModel(1)